News for hackers. Stuff that matters.
Re:YAML: probably not so great after all (2017) by outworlder on Wednesday June 20, 2018 @03:35PM (#17358924)
Most parsers will not support JSON5.
Re:YAML: probably not so great after all (2017) by nostalgeek on Wednesday June 20, 2018 @07:58PM (#17360989)
More like browsers can de-serialize JSON5 natively. writing a JSON5 parser is not difficult. It's just not part of most std libs in most languages, but I would argue that most std libs don't parse YAML either.

JSON5 is a good compromise.

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.