Disallow nested objects and arrays as keys in objects by eamonnmcmanus · Pull Request #772 · stleary/JSON-java

@eamonnmcmanus

@eamonnmcmanus mentioned this pull request

Sep 21, 2023

@eamonnmcmanus

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.

@eamonnmcmanus

@eamonnmcmanus

@stleary 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.

Sep 29, 2023

@stleary stleary changed the title Disallow nested objects and arrays as keys in objects. Disallow nested objects and arrays as keys in objects

Oct 13, 2023

johnjaylward pushed a commit to johnjaylward/JSON-java that referenced this pull request

Oct 17, 2023
Disallow nested objects and arrays as keys in objects.

claireagordon added a commit to yext/JSON-java that referenced this pull request

Mar 26, 2024