3 ms·
Works right up until you get an entity where the field `comments` is suddenly relevant and then you need to go change everything everywhere. Much better to use
by Etheryte 10mo ago
Works right up until you get an entity where the field `comments` is suddenly relevant and then you need to go change everything everywhere. Much better to use the right tool for the job, if you want JSONC, be explicit and use JSONC.
- DJBunnies 10mo agoSurely it could be suffixed or keyed with a less likely collision target than this very simplistic example. I suppose JSONC and similar exist, although they are rarely used in the wild in contrast to actual JSON usage, compatibility is important.
- vunderba 10mo agoHadn't heard of JSONC, but I've always been a proponent of JSON5 for this reason. https://github.com/json5/json5 https://github.com/json5/json5