189
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 15 points 6 days ago

Valid JSON is valid YAML.

So valid YAML can contain JSON

[-] [email protected] 0 points 6 days ago

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.

[-] [email protected] 7 points 6 days ago

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

[-] [email protected] 0 points 5 days ago* (last edited 2 days ago)

That was my point, yes, but I was replying to @[email protected]'s suggestion that "all yaml is just sparkling json".

this post was submitted on 04 Jul 2025
189 points (98.5% liked)

Programmer Humor

24932 readers
1112 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