Simulant
215f4268bf
add Javadoc and rename parameters to speaking variable names
2025-01-11 21:35:36 +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
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
Sean Leary
61dc2644d8
Revert "Merge pull request #886 from Simulant87/884-strictmode-javadoc"
...
This reverts commit 8983ca6da195bd8b7eb9e6655e97a2490d4afa2e, reversing
changes made to d02ac0f2a35f8c8ba56230bc4b67275010d4d617.
2024-11-03 09:49:50 -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
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
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
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
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 d69d5e284b3ee797f3950d80eb9dfc571a944284.
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
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
e67abb3842
feat(#871-strictMode): improved validation, strict mode for quotes implementation
2024-03-15 22:28:31 +00:00
Valentyn Kolesnikov
99c84fdf3a
Enhanced documentation for Java classes
2024-02-07 14:43:44 +02: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
É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
Michael Osipov
133c0cc75f
JSONTokener(InputStream) violates rfc8259#section-8.1 ( #739 )
...
Always use UTF-8 when an InputStream is passed.
This fixes #739 .
2023-05-24 11:45:25 +02:00
HariBabu t
7eca507d13
Removed overriding closable interface.
2023-03-07 13:58:30 +08:00
HariBabu t
e1eabc9c27
JSONTokener implemented java.io.Closeable
2023-03-04 23:08:32 +08:00
stleary
6daabb43ab
update-copyright - Replace copyright and license restrictions with Public Domain
2022-08-23 20:00:25 -05:00
John J. Aylward
7a124d857d
Add test cases for invalid input
2022-01-26 12:19:53 -05:00
Benjamin Gehrels
74e4932cfc
Transform the repository into standard maven format and merge the pom.xml of the release repo
2020-04-29 19:24:44 +02:00