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 14f71274f79ac50afb316845539f4195facc33ee, reversing
changes made to 054786e300d0fc38f0cf7fc0f2db4d9b39cb6443.
2024-11-03 09:49:23 -06:00
rikkarth
1ae43bdb90
fix( #887 ): regressions, unit tests
...
- JSONArray now evaluates EOF accordingly for empty Array inputs.
- JSONTokener fixed indentation
- externalized two JSONMLTest cases
2024-04-28 23:30:05 +01:00
Sean Leary
f4944fbf1e
fixes the broken JSONMLTest cases
2024-04-28 11:28:38 -05:00
Sean Leary
771c82c4eb
backing out recent changes to optLong, getLong. See #868
2024-02-24 13:07:51 -06:00
Rudrajyoti Biswas
04a4c5a3ec
Merge branch 'stleary:master' into master
2023-10-21 12:29:31 +00:00
rudrajyoti biswas
2374766018
#790 - Update XML with changes for string to number conversion.
...
For now the code remains duplicated in JSON and XML parsers.
Unit test cases updated to comply with number expectations.
2023-10-19 14:07:53 +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
simonh5
29a7f4622d
remove JSONAssert
2023-10-13 21:23:09 -05:00
simonh5
e4aa7f1308
fix: change from JSONAssert to checking the similarity of JSONObjects
2023-10-12 21:09:27 -05:00
simonh5
becc1631e6
fix: flakiness in JSONMLTest#testToJSONObject_reversibility
2023-09-18 20:20:13 -05:00
Tamas Perger
24093491a8
refactor: introduce ParserConfiguration class hierarchy
2023-02-21 19:13:07 +00:00
Tamas Perger
72f4c3e646
refactor: rename XMLtoJSONMLParserConfiguration to JSONMLParserConfiguration
2023-02-12 01:32:34 +00:00
Tamas Perger
df2d6f8363
fix: introduce optional XMLtoJSONMLParserConfiguration parameter for JSONML.toJSONArray(...) functions, to facilitate max nesting depth override.
2023-02-11 01:52:13 +00:00
Tamas Perger
a6e412bded
fix: limit the nesting depth in JSONML
...
Limit the XML nesting depth for CVE-2022-45688 when using the JsonML transform.
2023-02-10 01:46:44 +00:00
stleary
6daabb43ab
update-copyright - Replace copyright and license restrictions with Public Domain
2022-08-23 20:00:25 -05:00
John J. Aylward
beae279b21
Updates tests to have updated message expectations
2022-03-21 13:06:19 -04:00
stleary
2b0a8838ef
gradle support
2020-05-22 11:17:44 -05:00
Sean Leary
18eddf75c3
Merge pull request #95 from johnjaylward/StandardizeExceptionMessages
...
Test cases updates for standardized exception messages
2019-09-24 20:30:08 -05:00
John J. Aylward
a24db2cce2
remove unused import
2019-09-17 11:15:25 -04:00
John J. Aylward
67e59888a2
add second case for data in #484
2019-09-17 11:14:41 -04:00
John J. Aylward
fb01575394
Test cases updates for standardized exception messages
2019-09-17 10:47:16 -04:00
John J. Aylward
3e7a0b13d1
new test case for issue 484
2019-09-17 10:36:48 -04:00
John J. Aylward
0e612ba8a4
More test corrections for correct position reports in error messages
2017-06-21 19:56:00 -04:00
John J. Aylward
971614ac8b
fix expected exception message
2017-06-21 18:28:04 -04:00
John J. Aylward
3081b4bd96
Fixes for failing tests due to android integration
2017-06-21 14:59:42 -04:00
John J. Aylward
c233ae709e
comment out second unreliable test
2017-04-27 12:52:02 -04:00
John J. Aylward
95da4246a2
fix spelling in comment
2017-04-27 12:48:43 -04:00
John J. Aylward
9df5d34bbe
* Update link in the README to the main JSON-Java repo
...
* Cleans up some warnings
* Adds new test for bug https://github.com/stleary/JSON-java/issues/332
* Adds some resource handling for string writers using pre-java1.7
support. I know StringWriters don't need a close method called, but the
tests should still handle their resources properly.
2017-04-27 12:39:42 -04:00
John J. Aylward
215321cd28
updates Test cases to support new JSONML and XML conversion options
2016-07-18 15:04:03 -04:00
John J. Aylward
80f9e48e64
Moves src folder to simplify build.gradle configuration. If JSON-Java source is merged, it's src fold would now be src/main/java/org.json/ instead of src/main/org.json as well.
2016-06-16 12:20:54 -04:00