Simulant
c010033591
#863 replace short switch statements with if-else
2024-03-05 22:12:57 +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
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