this post was submitted on 04 Jul 2025
187 points (98.4% liked)

Programmer Humor

24834 readers
498 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] nathan@piefed.alphapuggle.dev 106 points 4 days ago (7 children)

This isn't YAML, this is just sparkling JSON

[–] ZoteTheMighty@lemmy.zip 34 points 4 days ago (6 children)

All yaml is just sparkling JSON.

[–] DataElemental@programming.dev 4 points 3 days ago (1 children)
[–] TomasEkeli@programming.dev 15 points 3 days ago (1 children)

Valid JSON is valid YAML.

So valid YAML can contain JSON

[–] DataElemental@programming.dev 0 points 3 days ago (1 children)

That's a long way from all or most YAML being JSON-compatible. I wonder if more YAML files in the wild parse as Markdown than JSON.

[–] TomasEkeli@programming.dev 7 points 3 days ago (1 children)

JSON is valid YAML does not imply that YAML is valid JSON

[–] DataElemental@programming.dev 0 points 3 days ago* (last edited 42 minutes ago)

That was my point, yes, but I was replying to @ZoteTheMighty@midwest.social's suggestion that "all yaml is just sparkling json".

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