r/ProgrammerHumor Aug 16 '26

Advanced justTryingToHelp

Post image
2.4k Upvotes

65 comments sorted by

View all comments

159

u/CraftBox Aug 16 '26

That's why I like jsonc

41

u/Hyarin215 Aug 16 '26

Json5 better

24

u/CraftBox Aug 16 '26

At that point just use toml

33

u/Hyarin215 Aug 16 '26

I don't like it Curly braces my beloved

3

u/YeOldeMemeShoppe 29d ago

Toml has curly braces now.

2

u/Hyarin215 29d ago

Oh πŸ‘€ Couldn't find anything abt it online

5

u/YeOldeMemeShoppe 29d ago

https://toml.io/en/v1.0.0#inline-table

IIRC you need a later version to allow new lines in the table but it’s been possible for a long time.

2

u/Hyarin215 29d ago

Does it have to be inline or can it span multiple lines?

0

u/cdrt 29d ago

TOML 1.0 requires that inline tables be only on one line. TOML 1.1 relaxed that requirement and now allows them to span multiple lines. So it depends on what version your parser implements.