Disallow nested objects and arrays as keys in objects by eamonnmcmanus · Pull Request #772 · stleary/JSON-java
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.
stleary
changed the title
Generalize the logic to disallow nested objects and arrays as keys in objects.
Disallow nested objects and arrays as keys in objects.
stleary
changed the title
Disallow nested objects and arrays as keys in objects.
Disallow nested objects and arrays as keys in objects
johnjaylward pushed a commit to johnjaylward/JSON-java that referenced this pull request
Oct 17, 2023This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters