1232
AI's take on XML (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] tetris11@lemmy.ml 13 points 2 months ago* (last edited 2 months ago)
{ "key": "six",
  "value": 6,
  "comment": "6 is a bad number. Use five." }
[-] renzev@lemmy.world 17 points 2 months ago

Please don't. If you need something like json but with comments, then use YAML or TOML. Those formats are designed to be human-readable by default, json is better suited for interchanging information between different pieces of software. And if you really need comments inside JSON, then find a parser that supports // or /* */ syntax.

this post was submitted on 08 Sep 2024
1232 points (98.0% liked)

Programmer Humor

32472 readers
478 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS