3 ms·
I like JSON5 and have used it some. When GPT was younger and I was parsing its JSON output directly, JSON5 was forgiving in useful ways. The one thing I really
by ianbicking 2y ago
I like JSON5 and have used it some. When GPT was younger and I was parsing its JSON output directly, JSON5 was forgiving in useful ways.
The one thing I really wish it had was some form of multi-line string, mostly so I could use it with line diffs. Also sometimes for really simple property editors it's nice to put the serialization in a textarea, and that works fine for everything but multiline strings.
(I suppose you can escape newline characters to put a string on multiple lines, but I find that rather inhumane and fragile)
- kylelahnakoski 2y agoHjson!
- ianbicking 2y agoOh! Format preserving editing too, very nice... https://github.com/hjson/hjson-js?tab=readme-ov-file#modify--keep-comments https://github.com/hjson/hjson-js?tab=readme-ov-file#modify-...