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

Experienced Devs

3956 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
[–] pileghoff@programming.dev 21 points 1 year ago (1 children)

I usually use Json5. It's JSON, but with all the weird quirks fixed (comments added, you can use hex numbers, you can have trailing commas etc.)

[–] 10nica@hexbear.net 3 points 1 year ago (1 children)

Oh that's interesting. Wonder how many libraries out there support it...

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

I don't know if it's actual json5, but eslint and some other libraries use extended, commentable json in their config files.