Re:YAML: probably not so great after all (2017)
by tlb on Thursday June 21, 2018 @05:27PM
(#17369437)
Neither Chrome nor Firefox's JSON.parse accept JSON5. I'm not sure what browser API you mean.
For example,
JSON.parse(`{"foo":"bar",}`)
throws a syntax error.
Re:YAML: probably not so great after all (2017)
by nostalgeek on Thursday June 21, 2018 @08:29PM
(#17370316)
> Neither Chrome nor Firefox's JSON.parse accept JSON5. I'm not sure what browser API you mean.
This is a typo, I meant "can't" not "can". Off course browsers don't support JSON5 or my message makes no sense whatsoever.
JSON5 is a good compromise.