this post was submitted on 13 Nov 2023
108 points (82.5% liked)

Programmer Humor

19594 readers
625 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

founded 1 year ago
MODERATORS
 

And I'll show you YAML

(a continuation of this post)

you are viewing a single comment's thread
view the rest of the comments
[–] jjjalljs@ttrpg.network 30 points 1 year ago* (last edited 1 year ago) (7 children)

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.

[–] Sgtmoustache@lemmy.world -3 points 1 year ago (3 children)

I'm pretty sure you can have trailing commas...

[–] Bjornir@programming.dev 2 points 1 year ago (1 children)

You can't but some parser allow them. But those that do do not respect the standard.

[–] Sgtmoustache@lemmy.world 1 points 1 year ago

Good to know. Must be why I thought you could. Thanks.

load more comments (1 replies)
load more comments (4 replies)