DEV Community

Discussion on: YAML vs. XML vs. JSON for Configuration

Collapse
 
nicolus profile image
Nicolas Bailly • Edited

I like YAML but it often adds quite a bit of overhead as it's not as universally supported as JSON (many languages will need a library, some basic text editors won't recognize it, you can't pass it directly to your front-end, you can't display it nicely in Firefox...).

So if I don't need the advanced features of YAML I usually stick to JSON. It's just a shame that JSON was conceived only as a data format and thus doesn't support comments and trailing commas, because it would have been a really good configuration format.

Collapse
 
missamarakay profile image
Amara Graham

Honestly supporting comments is really make or break for our product right now.