News for hackers. Stuff that matters.
Re:The Goals of XML at 25: and the one change that XML now n... by krapp on Monday July 19, 2021 @05:22AM (#27880624)
JSON won because Javascript natively supports it, and because once the web assimilated everything, everything else had to support it.
Re:The Goals of XML at 25: and the one change that XML now n... by crispyambulance on Monday July 19, 2021 @06:36AM (#27880988)
JSON "won" because people were sick of xml, it's turgid tooling, rampant xml-abuse (the horrid ws-* ecosystem), and they were annoyed with having to edit it by hand.

That said, xml could have worked out fine if there had been sane management of it's evolution. But now the cat's out of the bag, and we got json, and the "named-to-be-a-loser" YAML.

Re:The Goals of XML at 25: and the one change that XML now n... by dkarl on Monday July 19, 2021 @04:35PM (#27887000)
This is pretty much it, JSON won because it wasn't trying to deliver on all the promises XML made. We could see that it wasn't going down that dark path. It wasn't going to attract a community drunk on visions of their markup language solving every problem that complex systems have.

Maybe someday that kind of ambition will lead to something great, but we needed a step back.

Re:The Goals of XML at 25: and the one change that XML now n... by pydry on Monday July 19, 2021 @05:55AM (#27880774)
I'm no web historian but IIRC it actually supported XML first. Calling a backend required an XMLHttpRequest call. JSON could be parsed but by "executing" it (shudder).

So, whatever reason JSON won it wasnt that.

Re:The Goals of XML at 25: and the one change that XML now n... by GoblinSlayer on Monday July 19, 2021 @03:03PM (#27886151)
IIRC execution of JSON was suggested as a parsing method, I thought it was actually a nice hack. What's the point to not reuse the javascript parser which is right there?
Re:The Goals of XML at 25: and the one change that XML now n... by konart on Monday July 19, 2021 @05:42AM (#27880715)
JSON won because it can be easily processed by a human being
Re:The Goals of XML at 25: and the one change that XML now n... by chopin on Monday July 19, 2021 @06:12AM (#27880842)
You can't comment in JSON which I don't like (to put it mildly). Any real human readable format should support comments.
Re:The Goals of XML at 25: and the one change that XML now n... by konart on Monday July 19, 2021 @01:39PM (#27885250)
valid point.
Re:The Goals of XML at 25: and the one change that XML now n... by speed_spread on Monday July 19, 2021 @04:17PM (#27886833)
That's just a matter of what you've been exposed to. While XML will always be a little more verbose than JSON, a well-designed XML document format can be much easier to read than a poorly defined JSON one. Plus, chances are that good XML also specifies a schema, which can be used by editors and tools to help you make sense of the content and rules governing it. JSON has a few schema mechanisms, but they're not integrated into the standard and thus much less supported by tooling.