top | item 43488873 (no title) zeroimpl | 11 months ago Example? I know there's some ambiguity over whether literals like false are valid JSON, but I can't think of anything else. discuss order hn newest tubthumper8|11 months ago That _shouldn't_ be ambiguous, `false` is a valid JSON document according to specification, but not all parsers are compliant.There's some interesting examples of ambiguities here: https://seriot.ch/projects/parsing_json.html recursive|11 months ago Trailing commas, comments, duplicate key names, for a few examples. int_19h|11 months ago Trailing commas and comments are plainly not standard JSON under any definition. There are standards that include them which extend JSON, sure, but I'm not aware of any JSON library that emits this kind of stuff by default. load replies (1)
tubthumper8|11 months ago That _shouldn't_ be ambiguous, `false` is a valid JSON document according to specification, but not all parsers are compliant.There's some interesting examples of ambiguities here: https://seriot.ch/projects/parsing_json.html
recursive|11 months ago Trailing commas, comments, duplicate key names, for a few examples. int_19h|11 months ago Trailing commas and comments are plainly not standard JSON under any definition. There are standards that include them which extend JSON, sure, but I'm not aware of any JSON library that emits this kind of stuff by default. load replies (1)
int_19h|11 months ago Trailing commas and comments are plainly not standard JSON under any definition. There are standards that include them which extend JSON, sure, but I'm not aware of any JSON library that emits this kind of stuff by default. load replies (1)
tubthumper8|11 months ago
There's some interesting examples of ambiguities here: https://seriot.ch/projects/parsing_json.html
recursive|11 months ago
int_19h|11 months ago