onlinepersona@programming.dev to Programmer Humor@programming.devEnglish · 1 year agoShow me a better text format for serializingimgur.comexternal-linkmessage-square23fedilinkarrow-up192file-text
arrow-up192external-linkShow me a better text format for serializingimgur.comonlinepersona@programming.dev to Programmer Humor@programming.devEnglish · 1 year agomessage-square23fedilinkfile-text
minus-squarejjjalljs@ttrpg.networklinkfedilinkarrow-up0·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-squareOmnipotentEntity@beehaw.orglinkfedilinkarrow-up0·1 year agoChange to Haskell formatted commas and the problem goes away :D { "a": 1 , "b": 2 , "c": [ 3 , 6 , 9 ] }
minus-squareursakhiin@beehaw.orglinkfedilinkarrow-up1·1 year agoWhere is the nearest fire to dump this comment in?
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?