Sean Leary
197afddbfb
Merge pull request #990 from Simulant87/984-refactor-cognitive-complexity-populateMap
...
Refactor JSONObject populateMap() per SonarQube
2025-07-01 07:13:18 -05:00
Alex Cai
c882783d58
Format line 2755 in JSONObject.java
2025-06-27 01:44:27 +08:00
Simulant
5063d314a5
#984 extract method for annotation value check
2025-06-25 23:08:01 +02:00
Simulant
916fba5d39
#984 extract methods reducing cognitive complexity
...
for JSONObject#populateMap
2025-06-25 23:00:07 +02:00
AlexCai2019
aac376f305
Remove a redundant condition and an empty string
...
Remove "NULL.equals(object)" on line 2756 of JSONObject.java since line 2752 has already tested it.
Remove the empty string on line 249 of JSONPointer.java.
2025-06-23 01:31:51 +08:00
Sean Leary
50330430ce
remove-unused-code-jsonobject removed unused method from jsonobject
2025-06-07 16:15:43 -05:00
AlexCai2019
e800cc349f
Use constant.equals()
...
There are some equals() that are not constant.equals(variable), but variable.equals(constant)
2025-06-05 02:15:49 +08:00
hboggavarapu
dadc3e59dc
Use JSONParserConfiguration to decide on serializing null fields into JSONObject #982
2025-05-23 17:57:08 +05:30
Robert Lichtenberger
1afd7cd6bc
Use better name for parser configuration option, fix API comment.
2025-03-21 07:25:37 +01:00
Robert Lichtenberger
d1327c2da3
Allow to configure Java null handling.
2025-03-19 07:59:57 +01:00
Simulant
4c873a1db4
#947 use JSONParserConfiguration of JSONTokener in JSONObject and JSONArray constructor
2025-01-15 21:41:01 +01:00
Michael Ameri
ca1c6830c9
remove field references to JSONTokener and JSONParserConfiguration in JSONArray
...
and JSONObject
2025-01-10 18:05:27 +01:00
Sean Leary
2dcef89a6f
Code review action items - add comments and consistent error messages for strict mode
2024-12-21 09:50:52 -06:00
Sean Leary
09536cd6c8
restore-jsonparserconfiguration: add jsonobject strict tests. Detect semicolon instead of colon separator in object
2024-12-15 10:38:54 -06:00
Sean Leary
1f0729cadb
restore-jsonparserconfiguration: strict mode initial attempt. Still missing all JSONObject test cases and strict mode sanity check. Might be able to simplify implementation a bit more
2024-12-14 14:40:40 -06:00
Sean Leary
215ec9bb9c
Revert "Merge pull request #877 from rikkarth/feat/871-strictMode"
...
This reverts commit d02ac0f2a35f8c8ba56230bc4b67275010d4d617, reversing
changes made to cfd47615d0b9a2392945d198d7fd820bbbc17437.
2024-11-03 09:50:08 -06:00
rikkarth
c0918c2428
feat(#871-strictMode): add allowSingleQuote option, add enhancements and simplification
2024-03-30 11:06:30 +00:00
rikkarth
372f5caac4
feat(#871-strictMode): enhanced and simplified strictMode logic
2024-03-30 10:15:10 +00:00
rikkarth
8f66865e0a
Merge branch 'master' into feat/871-strictMode
2024-03-21 08:08:15 +00:00
rikkarth
3672b5e158
chore(#871-strictMode): reverted unrelated changes
2024-03-17 15:20:38 +00:00
rikkarth
e67abb3842
feat(#871-strictMode): improved validation, strict mode for quotes implementation
2024-03-15 22:28:31 +00:00
Simulant
b75da07545
#863 move instanceof Enum check back to original position
2024-03-10 23:21:47 +01:00
Simulant
5974fc1a38
Merge branch 'master' into 863-improve-toString-performance-StringBuilderWriter
2024-03-10 21:10:21 +01:00
Simulant
a3f15e5883
Revert " #863 replace usage of back() method in JSONObject parsing"
...
This reverts commit 5407423e439dfb4095e371666a65cf4f6603606d.
2024-03-10 21:08:31 +01:00
Simulant
045324ab42
Revert " #863 replace short switch statements with if-else"
...
This reverts commit c010033591c192a0821bdd8fe23bc61cdc6fe738.
2024-03-10 21:08:10 +01:00
XIAYM
05b0897f41
Merge branch 'stleary:master' into master
2024-03-09 22:19:30 +08:00
Simulant
c010033591
#863 replace short switch statements with if-else
2024-03-05 22:12:57 +01:00
Simulant
5407423e43
#863 replace usage of back() method in JSONObject parsing
2024-03-05 22:11:24 +01:00
Simulant
f38452a00c
add a comment explaining the ordering
...
(cherry picked from commit df0e3e9ab73d99f1256055a17bd86c8a1a000b59)
2024-02-25 09:50:26 +01:00
Simulant
4f456d9432
#863 fix changed behaviour of changing order in writeValue with JSONString
2024-02-25 09:42:06 +01:00
Simulant
d878c38d40
#863 reorder instanceof checks by assumed frequency
2024-02-24 22:36:14 +01:00
Simulant
e2194bc190
#863 undo wrong optimisation, fixing failing test
2024-02-24 21:35:29 +01:00
Simulant
06778bd2d9
#863 compute initial capacity for StringBuilderWriter
2024-02-24 21:21:06 +01:00
Sean Leary
771c82c4eb
backing out recent changes to optLong, getLong. See #868
2024-02-24 13:07:51 -06:00
Simulant
7c7a98da71
#863 use StringBuilderWriter to toString methods
...
resulting in a faster toString generation.
2024-02-23 21:48:25 +01:00
XIAYM
b314611230
Merge branch 'stleary:master' into master
2024-02-15 09:51:56 +08:00
XIAYM-gh
cb2c8d3962
Revert some unnecessary changes (mentioned in #840 )
2024-02-14 17:53:58 +08:00
XIAYM-gh
21a9fae7b0
Try making java 6 & old version javadoc generator compatible
2024-02-13 22:33:30 +08:00
XIAYM-gh
10514e48cb
Implemented custom duplicate key handling
...
- Supports: throw an exception (by default), ignore, overwrite & merge into a JSONArray
- With tests, 4/4 passed.
2024-02-13 18:56:10 +08:00
Valentyn Kolesnikov
99c84fdf3a
Enhanced documentation for Java classes
2024-02-07 14:43:44 +02:00
Thomas Gress
23ac2e7bca
improved annotation search performance
2023-12-29 12:28:24 +01:00
sk02241994
7701f21839
Adding comments
2023-12-24 11:39:26 +05:30
sk02241994
abea194120
Adding JSONParserConfiguration for configuring the depth of nested maps
2023-12-22 15:47:55 +05:30
sk02241994
6d811607dd
Resolving issue #743
...
- Recursive depth issue found in JSONObject
- Recursive depth issue found in JSONArray
2023-12-22 15:47:54 +05:30
rudrajyoti biswas
98b79ae7bf
#813 - moved number conversion related common changes to utility static method.
2023-10-23 19:16:25 +05:30
rudrajyoti biswas
1d0775cce7
Revert changes with feature and refactor together.
2023-10-19 10:28:11 +05:30
rudrajyoti biswas
7b2677ac5a
#790 - Update XML with changes for string to number conversion.
...
Moved the code logic to a common utility to de-duplicate.
2023-10-14 10:05:36 +05:30
rudrajyoti biswas
56cb5f84c4
#653 - review comments updated.
2023-10-12 11:03:13 +05:30
rudrajyoti biswas
0cdc38ac24
#653 - review comments updated.
2023-10-12 00:53:36 +05:30
Rudrajyoti Biswas
d5277b126b
Merge branch 'stleary:master' into master
2023-10-11 19:17:21 +00:00