Commit Graph

2222 Commits

Author SHA1 Message Date
shaojin.wensj 3c2206c604 support setter order with annotation @JSONField, for issue #1506 2023-05-23 23:40:25 +08:00
shaojin.wensj bfd444af0e optimize codeSize, codeSize < FreqInlineSize 325 2023-05-23 22:58:00 +08:00
shaojin.wensj b698962ba8 add testcase for issue #1505 2023-05-22 19:32:38 +08:00
shaojin.wensj 3f35ef2a8b improved android support 2023-05-22 18:56:47 +08:00
shaojin.wensj 875b0a57f6 add Fnv final 2023-05-22 18:56:36 +08:00
shaojin.wensj d272bb5df0 support unquoteName 2023-05-22 18:55:56 +08:00
shaojin.wensj af55968192 optimize vector api support 2023-05-22 00:44:01 +08:00
shaojin.wensj 98005e8f0c fix autoTypeBeforeHandler not work on safeMode 2023-05-21 20:21:15 +08:00
shaojin.wensj 141c542385 format 2023-05-20 23:28:01 +08:00
shaojin.wensj ae2b5e51af speed up serialize LocalDate & LocalTime 2023-05-20 23:11:47 +08:00
shaojin.wensj 793a08b35d support jsonp 2023-05-20 17:48:37 +08:00
shaojin.wensj 2318fe7f40 refactor write Date 2023-05-20 16:33:56 +08:00
shaojin.wensj d6d852c9f6 fix getMethod class not found error, for issue #1486 2023-05-20 13:47:18 +08:00
shaojin.wensj 3f3022b8d3 add testcase for issue #1498 2023-05-20 13:28:55 +08:00
shaojin.wensj 76c3172832 serialize & deserialize support java.time.Duration, for issue #1499 2023-05-20 12:41:42 +08:00
shaojin.wensj 08caabd1bb android not use LambdaMetafactory.metafactory 2023-05-20 04:39:57 +08:00
shaojin.wensj 74786a43da improved none-string key object deserialize support, for issue #1487 2023-05-20 04:30:06 +08:00
shaojin.wensj 1bba7bf04b fix writeDateYYYMMDD10 error, for issue #1497 2023-05-20 04:11:51 +08:00
shaojin.wensj 873450e012 JSONArray.toJavaObject support enum, for issue #1500 2023-05-20 04:00:44 +08:00
shaojin.wensj 61d696a962 optimize vector api support 2023-05-19 20:04:20 +08:00
Jerry Lee 0bfceeee51 chore: simplify `moditect` configuration 📦 2023-05-19 19:34:42 +08:00
shaojin.wensj 9d082a74d1 optimize vector api support 2023-05-19 19:16:04 +08:00
shaojin.wensj ecd9964c55 ContextAutoTypeBeforeHandler basicTypes add:
javax.validation.ValidationException
javax.validation.NoProviderFoundException
2023-05-19 04:25:45 +08:00
shaojin.wensj d1182945ec seeAlso support number typeName, for issue #1488 2023-05-19 04:04:56 +08:00
Kraity 435b0e018e fix: parsing failed when field exceeds 32 (simplify)
Signed-off-by: Kraity <kraty@krait.cn>
2023-05-19 00:27:17 +08:00
Kraity 4797cb42bf fix: parsing failed when field exceeds 32 (#1490)
Signed-off-by: Kraity <kraty@krait.cn>
2023-05-19 00:27:17 +08:00
shaojin.wensj dbc8d8e0e8 fix : serialize negative scale BigDecimal error, for issue #1494 2023-05-18 19:27:15 +08:00
shaojin.wensj 6eda9a74f6 reduce jar size & init time 2023-05-18 19:05:52 +08:00
shaojin.wensj ad55a82d9c optimize deserialize float & double 2023-05-18 19:01:05 +08:00
shaojin.wensj 39a41a3b30 use Math.multiplyHigh if jdk9+ 2023-05-18 09:32:55 +08:00
shaojin.wensj 92dbdea7aa use constant replace static field 2023-05-18 04:22:50 +08:00
shaojin.wensj fac655bce4 refactor internal asm, merge SymbolTable.Entry to Symbol 2023-05-18 04:07:05 +08:00
shaojin.wensj c789abeff0 add method JSONPath#endsWithFilter 2023-05-18 00:08:19 +08:00
shaojin.wensj e3f1401cb8 merge method 2023-05-17 19:04:37 +08:00
shaojin.wensj c894edb025 use new double to string algorithm 2023-05-17 18:23:34 +08:00
shaojin.wensj 1bb962e2e7 refactor TypeUtils#isUUID 2023-05-17 02:23:54 +08:00
shaojin.wensj 1c04747bd1 add method JSONPath#getParent 2023-05-17 01:22:10 +08:00
shaojin.wensj 6cdf08c56c 2.0.33 init 2023-05-16 08:02:47 +08:00
shaojin.wensj 2b7cde1d9c 2.0.32 release 2023-05-16 08:00:37 +08:00
shaojin.wensj 64071b320f add testcase & bug fix 2023-05-16 00:55:44 +08:00
shaojin.wensj 70d9e0bc15 speed up deserialize double 2023-05-15 21:36:32 +08:00
shaojin.wensj 5dc448674b public configFilter 2023-05-15 19:10:06 +08:00
shaojin.wensj 887d8dde34 speed up serialize & deserialize 2023-05-15 19:02:11 +08:00
shaojin.wensj b3cbd588a1 speed up CSVWriter 2023-05-15 00:03:57 +08:00
shaojin.wensj 7f232dd655 speed up : serialize numbers 2023-05-14 22:59:46 +08:00
shaojin.wensj a6caf7d28d speed up : deserialize OffsetDateTime 2023-05-14 20:03:17 +08:00
shaojin.wensj 726ae597b0 speed up : serialize & deserialize DateTime 2023-05-14 17:10:51 +08:00
shaojin.wensj 8c16613518 improve fastjson 1.x compatible, for issue #1432 2023-05-14 06:42:20 +08:00
shaojin.wensj 76415d5149 fix Set deserialize error, for issue #1417 2023-05-14 06:08:17 +08:00
shaojin.wensj 3cd69fc4b8 improved enum user-defined serialize support, for issue #1479 2023-05-13 13:04:39 +08:00
shaojin.wensj 038f1126ce speed up : create serialize & deserialize, less getAnnotation call 2023-05-13 12:20:22 +08:00
shaojin.wensj 348e49a8b8 improve annotation support 2023-05-13 02:14:18 +08:00
shaojin.wensj 0f0b5b11ce improve mixin non-getter annotation match, for issue #1474 2023-05-13 00:44:58 +08:00
shaojin.wensj 0a6b9049fa add testcase for issue #1469 2023-05-13 00:03:55 +08:00
shaojin.wensj 5e37d88f9e improved JSONPath#setCallback, for issue #1469 2023-05-12 19:08:03 +08:00
shaojin.wensj d210666eef fix JSONReader.Feature.SupportSmartMatch not work on non-default constructor deserialize, for issue #1460 2023-05-11 23:32:49 +08:00
shaojin.wensj ccca6477be add testcase for issue #1459 2023-05-11 23:32:49 +08:00
shaojin.wensj 81238a7b96 fix @JSONField not work on field if type not equals getter return type, for issue #1465 2023-05-11 23:32:49 +08:00
shaojin.wensj db197cb555 add testcase 2023-05-11 23:32:49 +08:00
kx 4265433df0 fix JSONArray and checkstyle 2023-05-11 19:54:23 +08:00
kx 37a1d18e30 fix getString method doesn't work as expected for issue #1446 2023-05-11 19:54:23 +08:00
shaojin.wensj c3adae8f7e fix @JSONField annotation not work on non-getter method, for issue #1461 2023-05-11 09:02:26 +08:00
shaojin.wensj dcb2494343 bug fix for none-string keyType Map deserialize input string key, for issue #1457 2023-05-09 21:34:49 +08:00
shaojin.wensj 06ed3a5055 improve line comment support 2023-05-09 19:10:33 +08:00
shaojin.wensj e45357ebc5 remove unused code 2023-05-09 08:44:32 +08:00
shaojin.wensj c1c292ebe3 import comment support 2023-05-09 08:40:57 +08:00
shaojin.wensj 1b2ab1cefe import comment support 2023-05-09 01:21:05 +08:00
shaojin.wensj e188f02156 fix jsonb deserialize none-string key object 2023-05-08 23:32:06 +08:00
Kraity 5f88e601ee fix checkstyle error of Issue1450
Signed-off-by: Kraity <kraty@krait.cn>
2023-05-08 22:37:04 +08:00
Kraity 6b017c92de fix: generic superclass of interface causes NPE #1450
Signed-off-by: Kraity <kraty@krait.cn>
2023-05-08 22:37:04 +08:00
Kraity 5b1b93068b fix javadoc error
Signed-off-by: Kraity <kraty@krait.cn>
2023-05-07 23:45:00 +08:00
Kraity a8221c385b fix checkstyle
Signed-off-by: Kraity <kraty@krait.cn>
2023-05-07 23:45:00 +08:00
Kraity 7a7f601954 docs: update comments of `JSON.java`
Signed-off-by: Kraity <kraty@krait.cn>
2023-05-07 23:45:00 +08:00
shaojin.wensj ada9479b56 fix jsonb autoType support, for dubbo issue 12209 2023-05-07 20:57:11 +08:00
shaojin.wensj 883c043b0c 2.0.32 init 2023-05-07 19:20:31 +08:00
shaojin.wensj 6e9dd86b2d 2.0.31 release 2023-05-07 19:17:00 +08:00
shaojin.wensj a88bb149b5 fix serialize String with '\n' unescaped, for issue #1387 2023-05-07 18:56:25 +08:00
shaojin.wensj a0f246a24d fix merge error for PR #1440 2023-05-07 17:13:40 +08:00
shaojin.wensj 76c9fa5970 fix compile error for issue #1440 2023-05-07 17:10:19 +08:00
shaojin.wensj 48231de90f speed up serialize & deserialize 2023-05-07 17:05:39 +08:00
温绍锦 e7f09f3320
Merge pull request #1440 from xuender/main
fix: #1439
2023-05-07 17:05:25 +08:00
shaojin.wensj a44903acdd remove always true / false code, for issue #1442 2023-05-07 13:12:47 +08:00
shaojin.wensj e0abc92a49 speed up : deserialize 2023-05-07 12:19:12 +08:00
shaojin.wensj f3a464699e speed up : serialize LocalDate 2023-05-07 08:08:54 +08:00
shaojin.wensj e5a094d54d speed up : serialize UUID & LocalDate 2023-05-07 01:53:08 +08:00
shaojin.wensj 0764c95aaf improve OffsetDateTime support 2023-05-06 22:54:53 +08:00
shaojin.wensj 9e9744985a improve OffsetDateTime support 2023-05-06 22:02:30 +08:00
shaojin.wensj 3924d76632 deserialize support OffsetDateTime 2023-05-06 21:42:27 +08:00
温绍锦 49ecf3bf30
Merge branch 'main' into main 2023-05-06 20:59:36 +08:00
shaojin.wensj 321837d8c0 fix write Collection item null error, for issue #1439 2023-05-06 20:48:55 +08:00
shaojin.wensj 1dac34c5d9 2.0.31 init 2023-05-06 20:23:12 +08:00
shaojin.wensj f7d8fc7015 2.0.30 release 2023-05-06 19:52:37 +08:00
shaojin.wensj 833fc5dd72 CSVReader#readLineAll & CSVReader#readLineObjectAll 2023-05-06 19:09:53 +08:00
miaoyin 2ee0408498 fix: #1439 2023-05-06 17:45:23 +08:00
shaojin.wensj 8cd2615973 improved JSONB API, support copy & parseObject InputStream 2023-05-06 17:12:41 +08:00
shaojin.wensj a0db8e2aba fix write non-string key as string if enable JSONWriter.Feature.BrowserCompatible, for issue #1401 2023-05-06 00:32:49 +08:00
shaojin.wensj 90863bb3db speed up : enum valueField 2023-05-05 23:35:49 +08:00
shaojin.wensj 1f4eb0c1e6 enum support String valueField, for issue #1435 2023-05-05 23:09:23 +08:00
shaojin.wensj a4c8c31dfd support config global dateFormat, for issue #1437 2023-05-05 22:39:18 +08:00
shaojin.wensj 41f852dcdb fix jsonb deserialize Byte[]/Short[]/Integer[]/Long[]/Float[]/Double[] support writeClassName, for dubbo issue 12209 2023-05-05 22:14:41 +08:00
shaojin.wensj db5860e604 fix NPE for issue #1433 2023-05-05 22:14:41 +08:00
shaojin.wensj 368a188574 add final 2023-05-05 22:14:41 +08:00
hnxiaoyuan d45e182bf8 fix JSONField incorrect comment 2023-05-05 22:14:29 +08:00
shaojin.wensj f542abadab improved jsonb deserialize date support 2023-05-04 23:04:29 +08:00
shaojin.wensj 8b1fa0cf02 refactor 2023-05-04 21:56:43 +08:00
shaojin.wensj c2a2606d0a reduce duplicate code 2023-05-04 21:41:28 +08:00
shaojin.wensj 2188b635f8 reduce duplicate code 2023-05-04 18:53:56 +08:00
shaojin.wensj 9061dc62b7 Throwable default not write className 2023-05-04 18:53:56 +08:00
shaojin.wensj c0475652df jsonpath support function index 2023-05-03 20:06:19 +08:00
shaojin.wensj d916f36b5c jsonpath support function 'first' & 'last' 2023-05-03 17:47:14 +08:00
shaojin.wensj c60bb8f293 add testcase for issue #1411 2023-05-01 23:52:31 +08:00
shaojin.wensj 67b42617bb refactor 2023-05-01 13:08:29 +08:00
shaojin.wensj 0f2d8f7141 fix oss fuzz 58420 2023-05-01 08:36:23 +08:00
shaojin.wensj 18b0772763 refactor cacheItem 2023-04-30 19:30:07 +08:00
shaojin.wensj 315bc27eec improved write enum performance 2023-04-30 16:01:53 +08:00
shaojin.wensj e40ee3fdc6 reduce duplicate code 2023-04-30 16:01:46 +08:00
shaojin.wensj b46cceeb7b speed up : JSONWriter buffer support 16 concurrent 2023-04-30 15:02:29 +08:00
shaojin.wensj c4ff5767da add final & max level check 2023-04-30 14:19:03 +08:00
shaojin.wensj 7072151192 fix paramName is null, for issue #1409 2023-04-29 23:52:36 +08:00
shaojin.wensj 28145c8c4c fix testcase 2023-04-29 23:35:48 +08:00
shaojin.wensj 53db08b0f6 max level 512, same as fastjson 1.x 2023-04-29 22:58:35 +08:00
shaojin.wensj 8fd9d6de2a autoconfig IgnoreErrorGetter for mybatis plus 2023-04-29 21:40:02 +08:00
shaojin.wensj 9cc6525915 fix : lambada not support lambda getter, for issue #1424 2023-04-29 20:00:40 +08:00
shaojin.wensj 4ad66e7bfc improved performance for concurrent 2023-04-29 18:18:20 +08:00
shaojin.wensj 722dd992b1 improved parse date to millis, for issue #1423 2023-04-29 16:57:22 +08:00
shaojin.wensj 6dd97ad814 add testcase for issue #1412 2023-04-29 11:33:26 +08:00
shaojin.wensj 8cc7e400fc support Collections#synchronizedXXX, for issue #1421 2023-04-28 15:02:24 +08:00
SeasonPan 5276362089
fix wrong new BigDecimal() and equals() (#1420) 2023-04-28 14:20:54 +08:00
陆之岇 824e2153ae
Fixed index out of bounds for #1413 (#1419)
* fix: index out of bounds for #1413

---------

Signed-off-by: Kraity <kraty@krait.cn>
2023-04-27 22:06:39 +08:00
陆之岇 49be545fcd
Add testcase and optimize serializing integer value (#1418)
* test: add testcase for #1401

Signed-off-by: Kraity <kraty@krait.cn>

* perf: optimize serializing int and long value

Signed-off-by: Kraity <kraty@krait.cn>

---------

Signed-off-by: Kraity <kraty@krait.cn>
2023-04-27 20:51:33 +08:00
Kraity e3cda14321 perf: reset after using TypeRedirect 2023-04-27 09:01:45 +08:00
Kraity 434a6779bf fix: bug when autotype is a map subclass, for #1411 2023-04-27 09:01:45 +08:00
lanxi 87cb869a13
[alibaba/fastjson2][bug-#1399] 修正jsonb序列化JSONObject对象为null时,反序列化失败报错的问题 (#1400)
fix Map deserialize null error, for issue #1399
2023-04-24 19:05:52 +08:00
shaojin.wensj 122bee5542 2.0.30 init 2023-04-22 20:49:47 +08:00
shaojin.wensj c54e298d74 2.0.29 release 2023-04-22 20:31:39 +08:00
shaojin.wensj 49759821eb improve android support, for issue #1349 2023-04-22 11:22:53 +08:00
shaojin.wensj aeeae085e8 add testcase for issue #1349 2023-04-22 10:17:30 +08:00
shaojin.wensj 64450df14d improve proxy support, for issue #1396 2023-04-22 07:21:44 +08:00
shaojin.wensj b721c7adb7 fix enum input null error, for issue #1385 2023-04-21 20:44:09 +08:00
shaojin.wensj be6d60cf23 add testcase for issue #1388 2023-04-21 20:29:19 +08:00
shaojin.wensj 891ce24cae improve Date process, for issue #1393 2023-04-21 20:13:01 +08:00
shaojin.wensj 2c1cdb5f75 improve Date process, for issue #1393 2023-04-21 18:27:30 +08:00
shaojin.wensj 60d61b6942 improve process Annotation, for issue #1395 2023-04-21 18:27:11 +08:00
shaojin.wensj b1f2e48ca0 improved csv reader 2023-04-20 20:55:50 +08:00
shaojin.wensj 177c72e6c1 fix : symbol >= 48 getString error, for issue #1366 2023-04-19 13:27:34 +08:00
shaojin.wensj fc07dbf58e speed up : DynamicClassLoader#loadClass 2023-04-17 21:16:38 +08:00
shaojin.wensj 8a6c8fa377 speed up : DynamicClassLoader#loadClass 2023-04-17 20:41:52 +08:00
shaojin.wensj 5749ea034c refactor : make JSONBDump non-public 2023-04-17 19:54:40 +08:00
shaojin.wensj d555c61d3c refactor : merge UUIDUtils & TypeUtils 2023-04-17 19:41:23 +08:00
shaojin.wensj f369c2f1a2 refactor : merge AnnotationUtils & BeanUtils 2023-04-17 19:25:30 +08:00
shaojin.wensj ca08a31208 refactor, move newProxyInstance to TypeUtils 2023-04-17 19:15:21 +08:00
shaojin.wensj 04393e6791 optimize writeBigDecimal 2023-04-17 19:05:47 +08:00
shaojin.wensj e0a3d9fd7e refactor BeanUtils#ignore 2023-04-16 23:42:31 +08:00
shaojin.wensj 9f176d0e4c optimize writeBigDecimal 2023-04-16 22:51:47 +08:00
shaojin.wensj d215883c62 add date benchmark 2023-04-16 21:49:31 +08:00
shaojin.wensj 28df270da2 optimize writeBigDecimal 2023-04-16 16:38:46 +08:00
shaojin.wensj 56ece52751 optimize writeBigDecimal 2023-04-16 15:06:49 +08:00
shaojin.wensj e57c5f4db1 add testcase & remove unused code 2023-04-16 14:08:31 +08:00
shaojin.wensj 6147807380 fix InitStringFieldAsEmpty error, for issue #1370 2023-04-16 13:27:44 +08:00
shaojin.wensj 0fd2a182b4 optimize writeBigDecimal 2023-04-16 13:09:52 +08:00
shaojin.wensj 3e2591ee85 add testcase 2023-04-16 10:11:53 +08:00
shaojin.wensj 755de14006 add testcase 2023-04-16 10:09:43 +08:00
shaojin.wensj 05c8f3cdec add testcase for #1349 2023-04-16 07:57:43 +08:00
shaojin.wensj bb1ea31077 2.0.29 init 2023-04-16 06:57:43 +08:00
shaojin.wensj 5b5191fb13 2.0.28 release 2023-04-16 06:45:16 +08:00
shaojin.wensj 466632ce13 fix FieldReader compare with fieldClass 2023-04-15 19:17:15 +08:00
shaojin.wensj 3705688658 jsonpath support filter [@.xxx is null], for issue #1369 2023-04-15 18:11:04 +08:00
shaojin.wensj ee9130988f remove duplicate code 2023-04-15 15:41:13 +08:00
shaojin.wensj c1df36cb4d replace FormatValidator with Predicate 2023-04-15 15:00:44 +08:00
shaojin.wensj 4f03b1aa13 refactor jsonschem impl 2023-04-15 14:52:43 +08:00
shaojin.wensj 2aeeeda1fd add testcase for issue #1289 2023-04-15 10:53:34 +08:00
shaojin.wensj 5b52ef0e0f fix readTypeHashCode error, for issue #1366 2023-04-15 10:00:39 +08:00
shaojin.wensj 3e2d9873ff refactor 2023-04-15 08:51:09 +08:00
shaojin.wensj 07d8e36e06 jsonschema support string const & enum, for issue #1367 2023-04-15 06:56:25 +08:00
shaojin.wensj c4e04188a8 JSONB.toJSONString support raw argument 2023-04-14 21:04:49 +08:00
shaojin.wensj dad6894ad9 support csv to arrow 2023-04-14 19:07:47 +08:00
shaojin.wensj 218481e3c2 try catch defineClassPublic 2023-04-14 07:50:07 +08:00
shaojin.wensj 1b2ccdf937 add testcase for issue #1347 2023-04-14 07:32:52 +08:00
shaojin.wensj 18246026a5 error if integer overflow, for issue #1357 2023-04-14 07:11:32 +08:00
shaojin.wensj 1932c06b9d map deserialize support empty string input, for issue #1356 2023-04-13 23:42:15 +08:00
shaojin.wensj 357a128b30 writeEnum default use name, for issue #1355 2023-04-13 23:00:26 +08:00
shaojin.wensj bc754855e9 use TypeUtils#toString & bug fix 2023-04-13 21:41:15 +08:00
shaojin.wensj eafcde0512 enable vector support for dragonwell_jdk_11 2023-04-13 20:46:13 +08:00
shaojin.wensj 1a07a74968 use TypeUtils#toString & bug fix 2023-04-13 20:17:23 +08:00
shaojin.wensj 533ed67884 speed up : read & write csv 2023-04-13 16:47:29 +08:00
shaojin.wensj 1f41f2d00b improved deserialize date smart match, for issue #1349 2023-04-13 09:28:10 +08:00
shaojin.wensj fdd467daab refactor parseLocalTime & parseLocalTime 2023-04-13 09:04:00 +08:00
shaojin.wensj df7993c0db readDate support 'yyyyMMddHHmmss' format, for issue #1326 2023-04-13 07:51:04 +08:00
shaojin.wensj e114a11abc fix : read List<Map<String, List>> field error, for issue #1351 2023-04-13 07:20:21 +08:00
shaojin.wensj d0f6c373b6 fix : WriteMapNullValue with Filter incorrect result, for issue #1348 2023-04-13 05:49:25 +08:00
shaojin.wensj 811d37cc6a fix : BrowserCompatible not work, for issue #1350 2023-04-13 05:37:23 +08:00
shaojin.wensj 5144961fa8 improved lambda function serialize support, for issue #1290 2023-04-13 05:37:23 +08:00
shaojin.wensj 5fa909d72b speed up : csv <-> arrow 2023-04-12 22:57:59 +08:00
shaojin.wensj 09622b65e1 fix IgnoreAutoTypeNotMatch 2023-04-12 15:53:14 +08:00
shaojin.wensj 1ca0ab6f7e code format 2023-04-10 06:39:49 +08:00
shaojin.wensj 7a07af370c add testcase 2023-04-09 16:32:42 +08:00
shaojin.wensj f582700190 fix : extended Map support, for issue #1338 2023-04-09 16:19:53 +08:00
shaojin.wensj 885f147013 read csv to object support non-public class 2023-04-09 15:49:29 +08:00
shaojin.wensj bd731e9286 add comment 2023-04-09 15:26:14 +08:00
shaojin.wensj b4490bf78f fix : extended Map support, for issue #1338 2023-04-09 13:12:45 +08:00