this post was submitted on 13 Nov 2023
108 points (82.5% liked)
Programmer Humor
19659 readers
545 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the 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
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.