News for hackers. Stuff that matters.
Re:I wish JSON5 was more popular by donatj on Saturday June 17, 2023 @03:05AM (#36368003)
JSON5 starts out with some features I can absolutely get behind

- Arrays may have a single trailing comma.

- Strings may be single quoted.

- Single and multi-line comments are allowed.

Then starts falling apart implementing things that aren’t even legal in JavaScript. Calling itself JSON-anything and not being literally compatible with JavaScript notation is just… an unforgivable cardinal sin.

Re:I wish JSON5 was more popular by SAI_Peregrinus on Saturday June 17, 2023 @11:29AM (#36371066)
Yeah, I'd rather just use RON and at least have good mapping to the Serde data model. It's just as usable for humans, and everything it implements is legal in Rust so calling itself Rusty Object Notation is accurate. Sadly there aren't bindings for other languages, so using it from C++ or such isn't that simple.