[dba-Tech] What are the difference

Hans-Christian Andersen hans.andersen at phulse.com
Fri Feb 7 18:08:25 CST 2014


The top comment is missing the most blindingly obvious reason why you would use JSON over XML - and it's right in the name.

JSON = JavaScript Object Notation (the big clue here is JavaScript!)

This is how you write JavaScript objects, because JSON is a subset of JS. JSON was introduced as a way of providing data (server to client) in a format that he browser/JavaScript didn't have to parse for rich web apps. It got more popular and has grown to be used in more environments simply because it is lighter and reads a lot easier than XML (good lord, reading large XML documents can sometimes be a nightmare. Don't use XML for configuration! :) ).

Best regards,
Hans-Christian Andersen


> On 7 Feb 2014, at 14:07, Jim Lawrence <accessd at shaw.ca> wrote:
> 
> Hi All:
> 
> I have often wondered what the differences and the reasons why someone would use JASON objects instead of XML objects and vice-versa.
> 
> It seems that the explanation is fairly simple. See the answer in the following link:
> 
> http://stackoverflow.com/questions/2620270/what-is-the-difference-between-json-and-xml
> 
> Now you can rest easy. ;-)
> 
> Jim 
> _______________________________________________
> dba-Tech mailing list
> dba-Tech at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-tech
> Website: http://www.databaseadvisors.com



More information about the dba-Tech mailing list