sk02241994
c4c2beb874
Limiting implemetation by removing the new classes.
2025-10-16 14:19:19 +11:00
sk02241994
7465da858c
- Updating for java 1.6
...
- Resolving Sonar cube issues.
2025-10-13 12:39:15 +11:00
sk02241994
0521928463
- Added implementation for Enum and Map
...
- Moving the CustomClass to data folder.
- Removing JSONBuilder.java
- Moving the implementation of JSONBuilder to JSONObject.
2025-10-13 12:39:14 +11:00
sk02241994
7d28955216
Updating to work with java 1.6
2025-10-13 12:39:13 +11:00
sk02241994
83a0e34be5
1003: Implement JSONObject.fromJson() with unit tests
2025-10-13 12:39:12 +11:00
marilynel
f2af220cb4
more sonarcube fixes
2025-09-14 10:59:39 -08:00
marilynel
53cfa742a7
more sonarcube optimization in jsonobject.java
2025-09-07 12:41:37 -08:00
marilynel
d5d82cdb87
fixing sonarcube issues
2025-07-20 11:31:29 -08:00
marilynel
c91b728386
oops forgot null
2025-07-13 12:52:42 -08:00
marilynel
fdaeb486ed
fixed some strict mode issues 980
2025-07-13 12:41:17 -08:00
hboggavarapu
a381060f81
Add testcase to assert Null fields serialization without JSONParserConfiguration
2025-05-24 21:54:12 +05:30
hboggavarapu
dadc3e59dc
Use JSONParserConfiguration to decide on serializing null fields into JSONObject #982
2025-05-23 17:57:08 +05:30
marilynel
2184ef34d1
refactored large test for strict mode
2025-04-13 11:35:45 -07:00
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
marilynel
3919abd69a
optimized unit tests to respond accurately to default strictMode
2025-02-15 12:30:12 -08:00
Simulant
6631b80e8f
#947 add new failing tests with JSONTokener having strict mode configuration
2025-01-15 21:38:46 +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
d3c7eaf17e
restore-jsonparserconfiguration: fix unit tests to work when strictMode default is true
2024-12-15 13:18:39 -06:00
Sean Leary
ab1b9a3459
Revert "Merge pull request #888 from rikkarth/fix/887"
...
This reverts commit 14f71274f7 , reversing
changes made to 054786e300 .
2024-11-03 09:49:23 -06:00
Sean Leary
14f71274f7
Merge pull request #888 from rikkarth/fix/887
...
fix(#887 ): complete strictMode for JSONArray
2024-05-20 20:18:49 -05:00
Sean Leary
209837357b
fixes the broken JSONObjectTest cases
2024-04-28 11:03:24 -05:00
Kaiyao Ke
b6e347d7f8
fixed non-idempotent unit tests
2024-04-26 01:01:21 -05:00
Simulant
0fcf352848
Revert "explain position information numbers in syntax exception"
...
This reverts commit d69d5e284b .
2024-03-27 20:36:35 +01:00
Simulant
d69d5e284b
explain position information numbers in syntax exception
2024-03-23 22:02:54 +01:00
Simulant
f1c9d0787b
add test cases for extended syntax error exception messages
2024-03-23 21:49:58 +01:00
Sean Leary
898288810f
add unit tests to clarify current behavior for JSONObject and XML
2024-02-24 21:07:12 -06:00
Sean Leary
771c82c4eb
backing out recent changes to optLong, getLong. See #868
2024-02-24 13:07:51 -06:00
Sean Leary
86bb0a1a02
cleanup-and-merge-tests: pull in unit tests from #809
2023-12-30 17:00:02 -06:00
sk02241994
ffd48afa42
Review comments
2023-12-23 10:53:54 +05:30
sk02241994
abea194120
Adding JSONParserConfiguration for configuring the depth of nested maps
2023-12-22 15:47:55 +05:30
sk02241994
dcac3bc18e
Adding test case for nested json with depth of 999, 1000, 1001
2023-12-22 15:47:54 +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
John J. Aylward
a3742acf74
Fixes #821
...
add ignore annotation to tests that may fail due to differences in machine resources and can't be controlled via the tests
2023-11-06 17:54:09 -05:00
Sean Leary
e6d37c469d
Merge pull request #788 from hofi1/bugfix/fix-JSON-flakiness
...
Fix string compare unit tests
2023-10-17 13:51:40 -05:00
simonh5
29a7f4622d
remove JSONAssert
2023-10-13 21:23:09 -05:00
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
Madjosz
c93014cb53
add validity check for JSONObject constructors
...
* fixes #713
* document JSONException in JavaDoc
* remove unused Comparable<T> boundary to reuse GenericBean in test
2023-10-07 09:38:54 +02:00
rudrajyoti biswas
1a38879c90
#653 - optLong vs getLong inconsistencies
...
For exponential decimal conversion, number is not touched.
Leading zeros removed from numeric number strings before converting to number.
2023-10-06 21:34:00 +05:30
Sean Leary
beb2fb5706
Merge pull request #772 from eamonnmcmanus/complexkey
...
Disallow nested objects and arrays as keys in objects.
2023-10-01 11:04:40 -05:00
Sean Leary
ef68cdf810
Merge pull request #773 from eedijs/master
...
Add optJSONArray method to JSONObject with a default value
2023-09-30 11:47:01 -05:00
Éamonn McManus
eaa5611ba3
Merge branch 'stleary:master' into complexkey
2023-09-28 11:33:08 -07:00
Éamonn McManus
dbb113176b
Add more test cases for unquoted text in objects and arrays.
2023-09-28 11:05:50 -07:00
Éamonn McManus
16967f322e
Simplify the check for object keys that are themselves objects.
...
For object keys, we can just skip the part of `nextValue()` that parses values
that are objects or arrays. Then the existing logic for unquoted values will
already stop at `{` or `[`, and that will produce a `Missing value` exception.
2023-09-27 12:42:04 -07:00
Edijs
db0fde2a56
Add optJSONArray method to JSONObject with a default value
2023-09-25 20:31:58 +03:00
Éamonn McManus
661114c50d
Generalize the logic to disallow nested objects and arrays as keys in objects.
...
Fixes #771 .
2023-09-20 10:50:48 -07:00
simonh5
ca88454f1c
fix: flakiness in org.json.junit.JSONObjectTest#valueToString
2023-09-19 14:28:06 -05:00
Éamonn McManus
3e688afc66
Small test fixes.
...
One test method was missing `@Test` so it was never run.
One test method used another test class as the base for finding a test
resource. While this works in practice with Maven, it is not strictly
right.
2023-09-19 07:38:13 -07:00
Valentyn Kolesnikov
74cd73f97c
Addressed compile warnings
2023-09-08 07:34:00 +03:00