41 ms·
JSON still doesn’t support comments though, they need to work on that.
by booleandilemma 9y ago
JSON still doesn’t support comments though, they need to work on that.
- avmich 9y agoTo me this sounds almost like "S-expressions still don't support comments". Why do you need comments in a structure of nested - unique key mappings - arrays - strings - numbers - booleans - nulls ? You can include comments, just like any string, into it, just reserve a key with unique name, if you want. From JSON parser/transformer point of view, "comment" as a concept isn't a data structure piece, it's rather "intent" piece.
- k6k7f7uky8ki 9y agoSomething seems odd about wanting to put comments inside the JSON instead of before it. Then people will want a way to read the comments programmatically, then they'll want annotations, etc.