3 ms·
From TFA >The two most recent JSON standards RFC 8259 and RFC 7159 both say "An implementation may set limits on the maximum depth of nesting". However, the EC
by andrepd 7y ago
From TFA
>The two most recent JSON standards RFC 8259 and RFC 7159 both say "An implementation may set limits on the maximum depth of nesting". However, the ECMA-404 specification doesn't contain any limit on how deeply nested JSON structures can be.
- mantap 7y agoNot stating a limit doesn't mean there's NO limit. It means the limit is implementation defined. If the way you interpret a spec implies a requirement of infinite memory or infinite stack, then the way you interpret it is wrong.
- EugeneOZ 7y agoReading "MUST" when specification says "may" is also wrong.
- ddlatham 7y agoTo be fair, that text was added after the above comment was posted. https://github.com/lovasoa/bad_json_parsers/commit/16f6ed75b4edcac4998878229783eadaa7212f18 https://github.com/lovasoa/bad_json_parsers/commit/16f6ed75b...