Show me a better text format for serializingimgur.comexternal-link onlinepersona ( @onlinepersona@programming.dev ) Programmer Humor@programming.devEnglish • 11 months ago message-square28fedilinkarrow-up182
arrow-up182external-linkShow me a better text format for serializingimgur.com onlinepersona ( @onlinepersona@programming.dev ) Programmer Humor@programming.devEnglish • 11 months ago message-square28fedilink
minus-square jjjalljs ( @jjjalljs@ttrpg.network ) linkfedilink22•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 OmnipotentEntity ( @OmnipotentEntity@beehaw.org ) linkfedilink12•11 months agoChange to Haskell formatted commas and the problem goes away :D { "a": 1 , "b": 2 , "c": [ 3 , 6 , 9 ] }
minus-square ursakhiin ( @ursakhiin@beehaw.org ) linkfedilink31•11 months agoWhere is the nearest fire to dump this comment in?
minus-square adambowles ( @adambowles@feddit.uk ) linkfedilink6•11 months agoTrailing commas are supported in json5, as well as comments
Yes, but whoever decided that json can’t have trailing commas has my ire.
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
Where is the nearest fire to dump this comment in?
Trailing commas are supported in json5, as well as comments