this post was submitted on 15 Aug 2023
32 points (100.0% liked)

Experienced Devs

125 readers
1 users here now

A community for discussion amongst professional software developers.

Posts should be relevant to those well into their careers.

For those looking to break into the industry, are hustling for their first job, or have just started their career and are looking for advice, check out:

founded 1 year ago
MODERATORS
 

.yaml, .toml, etc?

you are viewing a single comment's thread
view the rest of the comments
[–] simonced@lemmy.one 13 points 1 year ago (12 children)

A lot of good answers but I would add one note:

  • use a format that supports comments, and JSON is not one of those...
[–] ChairmanMeow@programming.dev 2 points 1 year ago

I believe the JSON deserializer .NET ships with has options to allow C#-style comments in JSON files.

[–] vrighter@discuss.tchncs.de 2 points 1 year ago

json with comments can be parsed by a yaml parser. It's how I write yaml, in fact (yaml is a superset of json. any valid json is valid yaml, but it also supports comments)

[–] kersplort@programming.dev 1 points 1 year ago

JSON5 is a superset of JSON that supports comments.

load more comments (9 replies)