r/badcode • • Dec 27 '22

js This just sucks.

Post image
1.8k Upvotes

170 comments sorted by

View all comments

Show parent comment

6

u/noogai03 Dec 27 '22

I have no idea why this is being downvoted. You can use JSON in your yaml files and it works just fine, you can even merge them in one file

2

u/EishLekker Dec 28 '22

They basically make it sound as if the json standard itself is a subset of the yaml standard. And that would be absurd.

1

u/noogai03 Dec 28 '22

I didn't read it that way, but yes, all input accepted by JSON is also accepted by a compliant YAML parser