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
4319b71934
force strict mode to expose failing tests
2024-04-28 10:37:36 -05:00
rikkarth
1e3f37be98
feat( #877 ): add additional validation, test case
2024-04-27 22:37:21 +01:00
rikkarth
7a8c21621c
fix( #877 ): adaptation for java 6 compatibility
2024-04-27 22:16:38 +01:00
rikkarth
9216a19366
feat( #877 ): improved JSONArray and JSONTokener logic
...
JSONArray construction improved to recursive validation
JSONTokener implemented smallCharMemory and array level for improved validation
Added new test cases and minor test case adaption
2024-04-27 22:14:35 +01:00
rikkarth
879579d3bb
chore( #887 ): signature minor edit
2024-04-23 20:54:20 +01:00
rikkarth
898dd5a39d
fix( #887 ): allow null value strict mode
2024-04-23 20:52:02 +01:00
rikkarth
ce13ebd5fe
chore( #887 ): clean up parsedUnquotedText implementation
2024-04-23 20:42:11 +01:00
rikkarth
7cc19483fb
fix( #887 ): regression parsing array with non-string and boolean values
2024-04-23 19:06:27 +01:00
rikkarth
0bace72ced
fix( #887 ): small typo
2024-04-21 22:09:05 +01:00
rikkarth
03def9c7fc
Merge branch 'master' of github.com:stleary/JSON-java into fix/887
2024-04-21 22:05:56 +01:00
rikkarth
3dcd5b2fab
fix( #887 ): double array breaking JSONTokener.nextValue
...
change(#887 ): input validation
2024-04-21 11:03:15 +01:00
rikkarth
ce074e9f9a
fix( #887 ): corrected small typo
2024-04-14 23:23:06 +01:00
rikkarth
fe597d296e
fix( #887 ): complete strictMode for JSONArray
2024-04-14 23:11:17 +01:00
Simulant87
5bd4257c54
add javadoc for strictmode
2024-04-12 15:30:41 +02:00
rikkarth
3200275881
change(stleary#871-strictMode): cleanup
...
chore: removed PII from json sample
chore: JSONParserConfiguration.java cleanup
chore: JSONTokener.java nextValue partial rollback
2024-04-07 10:26:28 +01:00
rikkarth
d92d62afc2
Merge branch 'master' into feat/871-strictMode
2024-03-30 22:03:57 +00:00
rikkarth
46534b56ad
feat(#871-strictMode): removed allowSingleQuotes
...
test(#871-strictMode): adjusted related tests, add more test cases for non-compliant quotes in strict mode
2024-03-30 18:44:51 +00:00
rikkarth
c0918c2428
feat(#871-strictMode): add allowSingleQuote option, add enhancements and simplification
2024-03-30 11:06:30 +00:00
rikkarth
d2cb38dba7
feat(#871-strictMode): added ORIGINAL implementation to JSONParserConfiguration
2024-03-30 10:26:44 +00:00
rikkarth
372f5caac4
feat(#871-strictMode): enhanced and simplified strictMode logic
2024-03-30 10:15:10 +00: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
Simulant
6c160b7d1a
leave JSONTokener.toString unchanged
2024-03-22 12:08:06 +01:00
Simulant
30dc22790c
extend syntax error information
2024-03-22 12:02:09 +01:00
rikkarth
8f66865e0a
Merge branch 'master' into feat/871-strictMode
2024-03-21 08:08:15 +00:00
Simulant87
6aed1cfeb6
fix typo
2024-03-18 23:07:22 +01:00
rikkarth
3672b5e158
chore(#871-strictMode): reverted unrelated changes
2024-03-17 15:20:38 +00:00
rikkarth
f3b3491f4d
chore(#871-strictMode): reverted refactor in JSONTokener
2024-03-16 01:13:52 +00:00
rikkarth
e2fe14d951
fix(#871-strictMode): replaced stream with conventional loop for 1.6 compatibility
2024-03-16 00:48:58 +00:00
rikkarth
c51efe8b08
docs(#871-strictMode): JSONArray constructor JavaDoc update
2024-03-15 22:55:09 +00:00
rikkarth
e67abb3842
feat(#871-strictMode): improved validation, strict mode for quotes implementation
2024-03-15 22:28:31 +00:00
rikkarth
63e8314deb
feat(#871-strictMode): strictMode JSONArray initial implementation
...
test(#871-strictMode): initial test implementation
2024-03-15 00:45:32 +00:00
rikkarth
dcbbccc76c
feat(#871-strictMode): strictMode configuration add to JSONParserConfiguration
...
docs(#871-strictMode): add javadoc
2024-03-15 00:19:25 +00:00
Simulant
b75da07545
#863 move instanceof Enum check back to original position
2024-03-10 23:21:47 +01:00
Simulant
6c35b08ad6
#863 make StringBuilderWriter public and move test
2024-03-10 23:20:09 +01:00
Simulant
0c5cf18255
Revert " #863 improve performance of JSONTokener#nextString"
...
This reverts commit 63625b3c62 .
2024-03-10 21:12:28 +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 5407423e43 .
2024-03-10 21:08:31 +01:00
Simulant
045324ab42
Revert " #863 replace short switch statements with if-else"
...
This reverts commit c010033591 .
2024-03-10 21:08:10 +01:00
Sean Leary
dab29ec1d5
remove-jsonparserconfig-ctor - just use the withOverwriteDuplicateKey() method
2024-03-09 09:15:53 -06: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
63625b3c62
#863 improve performance of JSONTokener#nextString
...
replacing a switch-case statement with few branches
by if-else cases
2024-03-05 09:43:54 +01:00
Simulant
f38452a00c
add a comment explaining the ordering
...
(cherry picked from commit df0e3e9ab7 )
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