Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does limited nesting break the standard? #64

Closed
holyj opened this issue Aug 23, 2012 · 1 comment
Closed

Does limited nesting break the standard? #64

holyj opened this issue Aug 23, 2012 · 1 comment

Comments

@holyj
Copy link

holyj commented Aug 23, 2012

Why is there the notion of nesting in the first place? It doesn't seem to comply with the JSON definition (there is no limit on nesting in the language, or is it?) . How was the exact value of JSONWriter.maxdepth determined? Why is it not exposed / overrideable via constructor?

@douglascrockford
Copy link
Contributor

Nesting is generally useful to a point. Beyond that point, excessive nesting is either a bug or an attack.
If you want to expose maxdepth, you have the source.

BGehrels pushed a commit to BGehrels/JSON-java that referenced this issue Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants