Why JSON will continue to push XML out of the picture
blog.appfog.com
Why JSON will continue to push XML out of the picture
1–10 of 47 posts
Re: Why JSON will continue to push XML out of the picture
#2JSON, at its core, is essentially a hierarchy of maps and lists -- which seems a very intuitive and useful way to store data.
XML on the other hand has always baffled me with its attributes and the redundant and verbose tags (why do I need data?). I'm sure there was a good reason at the time for this, so perhaps someone can enlighten me.
Re: Why JSON will continue to push XML out of the picture
#3Could someone who knows a lot about these things tell me why JSON took such a long time to arrive? JSON, at its core, is essentially a hierarchy of maps and lists -- which seems a very intuitive and useful way to store data. XML on the other hand has always baffled me with its attributes and the redundant and verbose tags (why do I need data ?). I'm sure there was a good reason at the time for this, so perhaps someon…
XML looked like HTML at a time when the web was the "next big thing". Like, not a technology on the web, or social media, HTML itself was this big revelation. So a solution that looks like HTML has a leg up.
Then, once there were mature parsers in a lot of languages, server software configured by it, etc, XML had some inertia that takes time to displace.
Re: Why JSON will continue to push XML out of the picture
#4Could someone who knows a lot about these things tell me why JSON took such a long time to arrive? JSON, at its core, is essentially a hierarchy of maps and lists -- which seems a very intuitive and useful way to store data. XML on the other hand has always baffled me with its attributes and the redundant and verbose tags (why do I need data ?). I'm sure there was a good reason at the time for this, so perhaps someon…
Lisp s-exps date to the original McCarthy paper in 1958, and could represent pretty much everything you can do with JSON, key-value pairs, lists, nested structure, etc.
Re: Why JSON will continue to push XML out of the picture
#5As a general data storage format, XML is certainly going away.
Re: Why JSON will continue to push XML out of the picture
#6Could someone who knows a lot about these things tell me why JSON took such a long time to arrive? JSON, at its core, is essentially a hierarchy of maps and lists -- which seems a very intuitive and useful way to store data. XML on the other hand has always baffled me with its attributes and the redundant and verbose tags (why do I need data ?). I'm sure there was a good reason at the time for this, so perhaps someon…
In the end, I think it's just subjective. All of the above formats are equally capable of representing the same data.
Re: Why JSON will continue to push XML out of the picture
#7XML always seemed like such a struggle by comparison. Figuring out which parser(s) you've got installed, figuring out their respective APIs -- it felt like total overkill. The only way I could be productive with XML was using Python's ElementTree API because it was so simple.
Some day I'll need my data to be checked against a complicated schema. But until that day arrives, I'm sticking with JSON.
Re: Why JSON will continue to push XML out of the picture
#8Why JSON over XML? Because people need data serialization format and XML is a Markup Language. JSON is gaining widespread adoption for data serialization applications since it's the correct tool. XML isn't.
In a markup language there is an underlying text that you're annotating with machine readable tags. Most data interchange doesn't have an underlying text -- you can't strip away the tags and expect it to be understandable. If you're writing a web page, that has to be read by humans and interpreted by machines... you need a markup language.
By contrast, data interchange is about moving arbitrary data structures between processes and/or languages. JSON's information model fits this model perfectly: its nested map/list/scalar is simple & powerful. As for typing, it found a sweet spot with text/numeric/boolean.
JSON is the right tool for the data serialization problem.
Re: Why JSON will continue to push XML out of the picture
#9Could someone who knows a lot about these things tell me why JSON took such a long time to arrive? JSON, at its core, is essentially a hierarchy of maps and lists -- which seems a very intuitive and useful way to store data. XML on the other hand has always baffled me with its attributes and the redundant and verbose tags (why do I need data ?). I'm sure there was a good reason at the time for this, so perhaps someon…
For some reason they stopped using text plists and replaced it with an ugly xml serialization, but you still see these in Xcode's debugger if you log an NSArray or NSDictionary to the console.
Re: Why JSON will continue to push XML out of the picture
#10The only kind of JSON that is readable is flat JSON that is nested to a maximum of 1 level.