3 ms·
> That's what XML had and has. JSON became successful because it did not do this. Discuss. XML tried to describe the structure in the XML itself. mikeash is re
by eridius 12y ago
> That's what XML had and has. JSON became successful because it did not do this. Discuss.
XML tried to describe the structure in the XML itself. mikeash is referring to describing the structure in the code, and that makes a heck of a lot more sense. The code definitely should know the structure, or at the very least know what type of value it's expecting when reading values out of a JSON blob.