this post was submitted on 24 Jan 2026
54 points (95.0% liked)

Programming

24651 readers
288 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

There exists a peculiar amnesia in software engineering regarding XML. Mention it in most circles and you will receive knowing smiles, dismissive waves, the sort of patronizing acknowledgment reserved for technologies deemed passé. "Oh, XML," they say, as if the very syllables carry the weight of obsolescence. "We use JSON now. Much cleaner."

you are viewing a single comment's thread
view the rest of the comments
[–] Diplomjodler3@lemmy.world 2 points 1 day ago (1 children)

Why not? It works great in Python.

[–] MonkderVierte@lemmy.zip 3 points 1 day ago (2 children)

Not on the human parser side.

[–] Tanoh@lemmy.world 3 points 1 day ago (1 children)

And no comments, unless you use a non-standard parser. But then you might as well use anorher format.

[–] Diplomjodler3@lemmy.world 4 points 1 day ago* (last edited 1 day ago) (3 children)
{"comment": "Who says you can't do comments in JSON?"}
[–] abbadon420@sh.itjust.works 3 points 1 day ago

Lol. That works, but its hacky.

The meaning of a "comment" is an integrated language feauture to write something that is not parsed by that language. This is just regular JSON.

[–] bleistift2@sopuli.xyz 2 points 1 day ago

This only works if the software that consumes the JSON doesn’t validate it or ignores keys it doesn’t recognize (which is bad, IMHO).

[–] tyler@programming.dev -1 points 20 hours ago (1 children)
[–] Diplomjodler3@lemmy.world 3 points 20 hours ago
{"comment2": "I can do this all day."}
[–] atzanteol@sh.itjust.works 1 points 1 day ago (1 children)

JSON is super easy to read and write though. Just needs a parser that allows comments...

[–] tyler@programming.dev 1 points 20 hours ago (1 children)
[–] atzanteol@sh.itjust.works 1 points 20 hours ago

Yes, which needs to be supported by your parser.