Comment by vjvjvjvjghv

10 hours ago

Now we have "JSON as savior". I see it way too often where new people come into a project and the first thing they want to do is to replace all XML with JSON, just because. Never mind that this solves basically nothing and often introduces its own set of problems. I am not a big fan of XML but to me it's pretty low in the hierarchy of design problems.

The only problem with XML is the verbosity of the markup. Otherwise it's a nice way to structure data without the bizarre idiosyncracies of YAML or JSON.

  • XML has its own set of idiosyncrasies like everything being a string. Or no explicit markup of arrays. The whole confusion around attributes vs values. And many others.

    JSON has its own set of problems like lack of comments and for some reason no date type.

    But in the end they are just data file formats. We have bigger things to worry about.

  • I mean, XML has its own bizarre idiosyncrasies like the whole attribute vs child element distinction (which maps nicely to text markup but less so for object graphs).

    I would say that the main benefit of XML is that it has a very mature ecosystem around it that JSON is still very much catching up with.