@[email protected] to Programmer [email protected]English • 1 year agoShow me a better text format for serializingimgur.comexternal-linkmessage-square46fedilinkarrow-up1131arrow-down128file-text
arrow-up1103arrow-down1external-linkShow me a better text format for serializingimgur.com@[email protected] to Programmer [email protected]English • 1 year agomessage-square46fedilinkfile-text
minus-square@[email protected]linkfedilink29•edit-21 year agoYes, but whoever decided that json can’t have trailing commas has my ire. { "a": 1, "b": 2, <-- nope } There was some other pitfall I can’t remember around missing keys and undefined, too, but I can’t remember it now.
minus-square@[email protected]linkfedilink8•1 year agoTrailing commas are supported in json5, as well as comments
minus-square@[email protected]linkfedilink2•1 year agoYou can’t but some parser allow them. But those that do do not respect the standard.
Yes, but whoever decided that json can’t have trailing commas has my ire.
{ "a": 1, "b": 2, <-- nope }
There was some other pitfall I can’t remember around missing keys and undefined, too, but I can’t remember it now.
Trailing commas are supported in json5, as well as comments
I’m pretty sure you can have trailing commas…
You can’t but some parser allow them. But those that do do not respect the standard.
Good to know. Must be why I thought you could. Thanks.
deleted by creator