Trailing commas are supported in json5, as well as comments
Comment on Show me a better text format for serializing
jjjalljs@ttrpg.network 11 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.
adambowles@feddit.uk 11 months ago
Sgtmoustache@lemmy.world 11 months ago
I’m pretty sure you can have trailing commas…
OmnipotentEntity@beehaw.org 11 months ago
Change to Haskell formatted commas and the problem goes away :D
ursakhiin@beehaw.org 11 months ago
Where is the nearest fire to dump this comment in?