XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
List of differences between XML and JSON?

Hi Folks,

 

I am putting together a list of differences between XML and JSON. Below is the list that I currently have. Are there other differences, that I haven’t listed?

 

JSON is often compared to XML. However, there are significant differences:

-          XML supports comments, JSON does not.

-          XML supports processing instructions, JSON does not.

-          XML provides multiple syntaxes to express things (e.g., attribute values can be delimited by either a single or double quote, attributes can be in any order), JSON does not have such flexibility.

-          XML uses canonicalization to convert the XML into a standard form, JSON does not need canonicalization since multiple forms are not allowed.

-          XML has namespaces, JSON does not.

Any other differences?

/Roger



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS