@[email protected] to Programmer [email protected]English • 11 months agoShow me a better text format for serializingimgur.commessage-square56fedilinkarrow-up1133file-text
arrow-up1106external-linkShow me a better text format for serializingimgur.com@[email protected] to Programmer [email protected]English • 11 months agomessage-square56fedilinkfile-text
minus-square@[email protected]linkfedilink30•edit-211 months 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]linkfedilink12•11 months agoChange to Haskell formatted commas and the problem goes away :D { "a": 1 , "b": 2 , "c": [ 3 , 6 , 9 ] }
minus-square@[email protected]linkfedilink31•11 months agoWhere is the nearest fire to dump this comment in?
minus-square@[email protected]linkfedilink-2•11 months agoI’m pretty sure you can have trailing commas…
minus-square@[email protected]linkfedilink2•11 months agoYou can’t but some parser allow them. But those that do do not respect the standard.
minus-square@[email protected]linkfedilink1•10 months agoGood to know. Must be why I thought you could. Thanks.
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.
Change to Haskell formatted commas and the problem goes away :D
{ "a": 1 , "b": 2 , "c": [ 3 , 6 , 9 ] }
Where is the nearest fire to dump this comment in?
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.