SlideShare a Scribd company logo
1 of 3
Download to read offline
Difference between XML and JSON

     S.No   XML                                     JSON

     1      Abbreviation:                       Abbreviation:
            XML stands for           Extensible JSON stands for JavaScript Object
            Markup Language.                    Notation.

     2      Meaning:                                Meaning:
            XML is a markup language that           JSON is a text-based open standard
            defines a set of rules for encoding     designed for human-readable data
            documents in a format that is both      interchange. It is derived from the
            human-readable and machine-             JavaScript scripting language for
            readable. It is defined in the XML      representing simple data structures and
            1.0 Specification produced by the       associative arrays, called objects.
            W3C, and several other related          Despite its relationship to JavaScript, it
            specifications,all gratis open          is language-independent, with parsers
            standards.The design goals of           available for many languages.The
            XML        emphasize      simplicity,   JSON format is often used for
            generality, and usability over the      serializing and transmitting structured
            Internet.It is a textual data format    data over a network connection. It is
            with strong support via Unicode         used primarily to transmit data
            for the languages of the world.         between a server and web application,
            Although the design of XML              serving as an alternative to XML.
            focuses on documents, it is widely
            used for the representation of
            arbitrary data structures, for
            example in web services.

     3      Type of format:                         Type of format:
            Markup language                         Data interchange

     4      Extended from:                          Extended from:
            SGML                                    JavaScript

     5      Developed by:                           Developed by:
            World Wide Web Consortium               The JSON format was originally
                                                    specified by Douglas Crockford for
                                                    using it at State Software, a company
                                                    co-founded by Crockford, starting
                                                    around 2001.

     6      Data types:                             Data types:
            Does not provide any notion of          Provides scalar data types and the
            data types. One must rely on XML        ability to express structured data
            Schema      for   adding      type      through arrays and objects.
            information.

     7      Support for arrays:              Support for arrays:
            Arrays have to be expressed by Native array support.
            conventions, for example through
            the use of an outer placeholder
element that models the arrays
     contents as inner elements.
     Typically, the outer element uses
     the plural form of the name used
     for inner elements.

8    Support for objects :           Support for objects :
     Objects have to be expressed by Native object support.
     conventions, often through a
     mixed use of attributes and
     elements.

9    Null support:                  Null support:
     Requires use of xsi:nil on Natively recognizes the null value.
     elements in an XML instance
     document plus an import of the
     corresponding namespace.

10   Comments:                            Comments:
     Native support and           usually Not supported.
     available through APIs.

11   Namespaces :                            Namespaces :
     Supports namespaces, which              No concept of namespaces. Naming
     eliminates the risk of name             collisions are usually avoided by
     collisions     when      combining      nesting objects or using a prefix in an
     documents. Namespaces also              object member name (the former is
     allow      existing    XML-based        preferred in practice).
     standards to be safely extended.

12   Formatting decisions :                  Formatting decisions :
     Complex. Requires a greater             Simple. Provides a much more direct
     effort to decide how to map             mapping for application data. The only
     application types to XML                exception may be the absence of
     elements and attributes. Can            date/time literal.
     create heated debates whether an
     element-centric     or     attribute-
     centric approach is better.

13   Size :                                  Size :
     Documents tend to be lengthy in         Syntax is very terse and yields
     size, especially when an element-       formatted text where most of the space
     centric approach to formatting is       is consumed (rightly so) by the
     used.                                   represented data.

14   Parsing in JavaScript :                 Parsing in JavaScript :
     Requires     an     XML     DOM         No additional application code
     implementation and additional           required to parse text; can use
     application code to map text back       JavaScript's eval function.
     into JavaScript objects.

15   Learning curve :                  Learning curve :
     Generally tends to require use of Very simple technology stack that is
several technologies in concert: already familiar to developers with a
              XPath, XML Schema, XSLT, background in JavaScript or other
              XML Namespaces, the DOM, and dynamic programming languages.
              so on.

      16      Tools :                      Tools :
              Enjoys a mature set of tools Rich tool support—such as editors and
              widely available from many formatters—is scarce.
              industry vendors.

      17      Microsoft .NET Framework :            Microsoft .NET Framework :
              Very good and mature support          None so far, except an initial
              since version 1.0 of the .NET         implementation as part of ASP.NET
              Framework. XML support is             AJAX.
              available as part of the Base Class
              Library (BCL). For unmanaged
              environments, there is MSXML.

      18      Platform and language :               Platform and language :
              Parsers and formatters are widely     Parsers and formatters are available
              available on many platforms and       already on many platforms and in
              languages (commercial and open        many languages. Consult json.org for a
              source implementations).              good set of references. Most
                                                    implementations for now tend to be
                                                    open source projects.

      19      Integrated language :            Integrated language :
              Industry vendors are currently Is       natively    supported             in
              experimenting     with   support JavaScript/ECMAScript only.
              literally within languages. See
              Microsoft's LINQ project for
              more information.

References:

http://en.wikipedia.org/wiki/XML

http://en.wikipedia.org/wiki/JSON

http://www.vinaytechs.com/2009/10/introduction-to-javascript-object.html

And, further updates on difference between questions and answers, please visit my blog @
http://onlydifferencefaqs.blogspot.in/

More Related Content

What's hot

Introduction to Python programming Language
Introduction to Python programming LanguageIntroduction to Python programming Language
Introduction to Python programming LanguageMansiSuthar3
 
Functions in c language
Functions in c language Functions in c language
Functions in c language tanmaymodi4
 
web service technologies
web service technologiesweb service technologies
web service technologiesYash Darak
 
About Tokens and Lexemes
About Tokens and LexemesAbout Tokens and Lexemes
About Tokens and LexemesBen Scholzen
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming LanguageLaxman Puri
 
Lecture 4 variables data types and operators
Lecture 4  variables data types and operatorsLecture 4  variables data types and operators
Lecture 4 variables data types and operatorsalvin567
 
Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming KrishnaMildain
 
Lecture 3 basic syntax and semantics
Lecture 3  basic syntax and semanticsLecture 3  basic syntax and semantics
Lecture 3 basic syntax and semanticsalvin567
 
Object oriented software engineering concepts
Object oriented software engineering conceptsObject oriented software engineering concepts
Object oriented software engineering conceptsKomal Singh
 
Streams In C# Tutorial
Streams In C# TutorialStreams In C# Tutorial
Streams In C# TutorialSimplilearn
 
Xml query language and navigation
Xml query language and navigationXml query language and navigation
Xml query language and navigationRaghu nath
 

What's hot (20)

Xml ppt
Xml pptXml ppt
Xml ppt
 
Xhtml
XhtmlXhtml
Xhtml
 
NLP
NLPNLP
NLP
 
Xhtml
XhtmlXhtml
Xhtml
 
Introduction to Python programming Language
Introduction to Python programming LanguageIntroduction to Python programming Language
Introduction to Python programming Language
 
Functions in c language
Functions in c language Functions in c language
Functions in c language
 
web service technologies
web service technologiesweb service technologies
web service technologies
 
About Tokens and Lexemes
About Tokens and LexemesAbout Tokens and Lexemes
About Tokens and Lexemes
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
Xml databases
Xml databasesXml databases
Xml databases
 
Lecture 4 variables data types and operators
Lecture 4  variables data types and operatorsLecture 4  variables data types and operators
Lecture 4 variables data types and operators
 
Python - Lecture 11
Python - Lecture 11Python - Lecture 11
Python - Lecture 11
 
Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming
 
Windowforms controls c#
Windowforms controls c#Windowforms controls c#
Windowforms controls c#
 
Lecture 3 basic syntax and semantics
Lecture 3  basic syntax and semanticsLecture 3  basic syntax and semantics
Lecture 3 basic syntax and semantics
 
Object oriented software engineering concepts
Object oriented software engineering conceptsObject oriented software engineering concepts
Object oriented software engineering concepts
 
NAMED ENTITY RECOGNITION
NAMED ENTITY RECOGNITIONNAMED ENTITY RECOGNITION
NAMED ENTITY RECOGNITION
 
JSON and XML
JSON and XMLJSON and XML
JSON and XML
 
Streams In C# Tutorial
Streams In C# TutorialStreams In C# Tutorial
Streams In C# Tutorial
 
Xml query language and navigation
Xml query language and navigationXml query language and navigation
Xml query language and navigation
 

Viewers also liked

Web Services with Objective-C
Web Services with Objective-CWeb Services with Objective-C
Web Services with Objective-CJuio Barros
 
iOS: Web Services and XML parsing
iOS: Web Services and XML parsingiOS: Web Services and XML parsing
iOS: Web Services and XML parsingJussi Pohjolainen
 
Connecting to a REST API in iOS
Connecting to a REST API in iOSConnecting to a REST API in iOS
Connecting to a REST API in iOSgillygize
 
iOSハンズオントレーニング通信(NSURLConnection/NSURLSession)編
iOSハンズオントレーニング通信(NSURLConnection/NSURLSession)編iOSハンズオントレーニング通信(NSURLConnection/NSURLSession)編
iOSハンズオントレーニング通信(NSURLConnection/NSURLSession)編聡 大久保
 
Difference between vbscript and javascript
Difference between vbscript and javascriptDifference between vbscript and javascript
Difference between vbscript and javascriptUmar Ali
 
Webservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview QuestionsWebservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview QuestionsH2kInfosys
 

Viewers also liked (8)

Web Services with Objective-C
Web Services with Objective-CWeb Services with Objective-C
Web Services with Objective-C
 
iOS: Web Services and XML parsing
iOS: Web Services and XML parsingiOS: Web Services and XML parsing
iOS: Web Services and XML parsing
 
Connecting to a REST API in iOS
Connecting to a REST API in iOSConnecting to a REST API in iOS
Connecting to a REST API in iOS
 
iOSハンズオントレーニング通信(NSURLConnection/NSURLSession)編
iOSハンズオントレーニング通信(NSURLConnection/NSURLSession)編iOSハンズオントレーニング通信(NSURLConnection/NSURLSession)編
iOSハンズオントレーニング通信(NSURLConnection/NSURLSession)編
 
Difference between vbscript and javascript
Difference between vbscript and javascriptDifference between vbscript and javascript
Difference between vbscript and javascript
 
Webservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview QuestionsWebservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview Questions
 
URLSession Reloaded
URLSession ReloadedURLSession Reloaded
URLSession Reloaded
 
JSON and REST
JSON and RESTJSON and REST
JSON and REST
 

Similar to Difference between xml and json

Silverlight difference faqs- 2
Silverlight difference faqs- 2Silverlight difference faqs- 2
Silverlight difference faqs- 2Umar Ali
 
Understanding Dom
Understanding DomUnderstanding Dom
Understanding DomLiquidHub
 
Applied xml programming for microsoft
Applied xml programming for microsoftApplied xml programming for microsoft
Applied xml programming for microsoftRaghu nath
 
0001 Genero Terms
0001 Genero Terms0001 Genero Terms
0001 Genero Termsguest174e18
 
0001 Genero Terms
0001 Genero Terms0001 Genero Terms
0001 Genero Termsguest174e18
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processorHimanshu Soni
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processorHimanshu Soni
 
Xbase implementing specific domain language for java
Xbase  implementing specific domain language for javaXbase  implementing specific domain language for java
Xbase implementing specific domain language for javaYash Patel
 
Net framework
Net frameworkNet framework
Net frameworkjhsri
 
Difference between rdf, odata and gdata
Difference between rdf, odata and gdataDifference between rdf, odata and gdata
Difference between rdf, odata and gdataUmar Ali
 
0001 Genero Terms
0001 Genero Terms0001 Genero Terms
0001 Genero Termsguest174e18
 
[Android] Web services
[Android] Web services[Android] Web services
[Android] Web servicesNikmesoft Ltd
 
Introduction to Web Services Protocols.ppt
Introduction to Web Services Protocols.pptIntroduction to Web Services Protocols.ppt
Introduction to Web Services Protocols.pptDr.Saranya K.G
 
Parsing XML & JSON in Apex
Parsing XML & JSON in ApexParsing XML & JSON in Apex
Parsing XML & JSON in ApexAbhinav Gupta
 
epicenter2010 Open Xml
epicenter2010   Open Xmlepicenter2010   Open Xml
epicenter2010 Open XmlCraig Murphy
 

Similar to Difference between xml and json (20)

Silverlight difference faqs- 2
Silverlight difference faqs- 2Silverlight difference faqs- 2
Silverlight difference faqs- 2
 
Understanding Dom
Understanding DomUnderstanding Dom
Understanding Dom
 
8023.ppt
8023.ppt8023.ppt
8023.ppt
 
Applied xml programming for microsoft
Applied xml programming for microsoftApplied xml programming for microsoft
Applied xml programming for microsoft
 
E05412327
E05412327E05412327
E05412327
 
0001 Genero Terms
0001 Genero Terms0001 Genero Terms
0001 Genero Terms
 
0001 Genero Terms
0001 Genero Terms0001 Genero Terms
0001 Genero Terms
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
 
Xbase implementing specific domain language for java
Xbase  implementing specific domain language for javaXbase  implementing specific domain language for java
Xbase implementing specific domain language for java
 
Net framework
Net frameworkNet framework
Net framework
 
Difference between rdf, odata and gdata
Difference between rdf, odata and gdataDifference between rdf, odata and gdata
Difference between rdf, odata and gdata
 
0001 Genero Terms
0001 Genero Terms0001 Genero Terms
0001 Genero Terms
 
[Android] Web services
[Android] Web services[Android] Web services
[Android] Web services
 
dot NET Framework
dot NET Frameworkdot NET Framework
dot NET Framework
 
c#.pptx
c#.pptxc#.pptx
c#.pptx
 
Introduction to Web Services Protocols.ppt
Introduction to Web Services Protocols.pptIntroduction to Web Services Protocols.ppt
Introduction to Web Services Protocols.ppt
 
Parsing XML & JSON in Apex
Parsing XML & JSON in ApexParsing XML & JSON in Apex
Parsing XML & JSON in Apex
 
Net framework
 Net framework Net framework
Net framework
 
epicenter2010 Open Xml
epicenter2010   Open Xmlepicenter2010   Open Xml
epicenter2010 Open Xml
 

More from Umar Ali

Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web apiUmar Ali
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Umar Ali
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Umar Ali
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcUmar Ali
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcUmar Ali
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1Umar Ali
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1Umar Ali
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1Umar Ali
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1Umar Ali
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1 Umar Ali
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sitesUmar Ali
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamilUmar Ali
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamilUmar Ali
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trendsUmar Ali
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1 Umar Ali
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1 Umar Ali
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search enginesUmar Ali
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1Umar Ali
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1Umar Ali
 

More from Umar Ali (20)

Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web api
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvc
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 

Recently uploaded

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 

Recently uploaded (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

Difference between xml and json

  • 1. Difference between XML and JSON S.No XML JSON 1 Abbreviation: Abbreviation: XML stands for Extensible JSON stands for JavaScript Object Markup Language. Notation. 2 Meaning: Meaning: XML is a markup language that JSON is a text-based open standard defines a set of rules for encoding designed for human-readable data documents in a format that is both interchange. It is derived from the human-readable and machine- JavaScript scripting language for readable. It is defined in the XML representing simple data structures and 1.0 Specification produced by the associative arrays, called objects. W3C, and several other related Despite its relationship to JavaScript, it specifications,all gratis open is language-independent, with parsers standards.The design goals of available for many languages.The XML emphasize simplicity, JSON format is often used for generality, and usability over the serializing and transmitting structured Internet.It is a textual data format data over a network connection. It is with strong support via Unicode used primarily to transmit data for the languages of the world. between a server and web application, Although the design of XML serving as an alternative to XML. focuses on documents, it is widely used for the representation of arbitrary data structures, for example in web services. 3 Type of format: Type of format: Markup language Data interchange 4 Extended from: Extended from: SGML JavaScript 5 Developed by: Developed by: World Wide Web Consortium The JSON format was originally specified by Douglas Crockford for using it at State Software, a company co-founded by Crockford, starting around 2001. 6 Data types: Data types: Does not provide any notion of Provides scalar data types and the data types. One must rely on XML ability to express structured data Schema for adding type through arrays and objects. information. 7 Support for arrays: Support for arrays: Arrays have to be expressed by Native array support. conventions, for example through the use of an outer placeholder
  • 2. element that models the arrays contents as inner elements. Typically, the outer element uses the plural form of the name used for inner elements. 8 Support for objects : Support for objects : Objects have to be expressed by Native object support. conventions, often through a mixed use of attributes and elements. 9 Null support: Null support: Requires use of xsi:nil on Natively recognizes the null value. elements in an XML instance document plus an import of the corresponding namespace. 10 Comments: Comments: Native support and usually Not supported. available through APIs. 11 Namespaces : Namespaces : Supports namespaces, which No concept of namespaces. Naming eliminates the risk of name collisions are usually avoided by collisions when combining nesting objects or using a prefix in an documents. Namespaces also object member name (the former is allow existing XML-based preferred in practice). standards to be safely extended. 12 Formatting decisions : Formatting decisions : Complex. Requires a greater Simple. Provides a much more direct effort to decide how to map mapping for application data. The only application types to XML exception may be the absence of elements and attributes. Can date/time literal. create heated debates whether an element-centric or attribute- centric approach is better. 13 Size : Size : Documents tend to be lengthy in Syntax is very terse and yields size, especially when an element- formatted text where most of the space centric approach to formatting is is consumed (rightly so) by the used. represented data. 14 Parsing in JavaScript : Parsing in JavaScript : Requires an XML DOM No additional application code implementation and additional required to parse text; can use application code to map text back JavaScript's eval function. into JavaScript objects. 15 Learning curve : Learning curve : Generally tends to require use of Very simple technology stack that is
  • 3. several technologies in concert: already familiar to developers with a XPath, XML Schema, XSLT, background in JavaScript or other XML Namespaces, the DOM, and dynamic programming languages. so on. 16 Tools : Tools : Enjoys a mature set of tools Rich tool support—such as editors and widely available from many formatters—is scarce. industry vendors. 17 Microsoft .NET Framework : Microsoft .NET Framework : Very good and mature support None so far, except an initial since version 1.0 of the .NET implementation as part of ASP.NET Framework. XML support is AJAX. available as part of the Base Class Library (BCL). For unmanaged environments, there is MSXML. 18 Platform and language : Platform and language : Parsers and formatters are widely Parsers and formatters are available available on many platforms and already on many platforms and in languages (commercial and open many languages. Consult json.org for a source implementations). good set of references. Most implementations for now tend to be open source projects. 19 Integrated language : Integrated language : Industry vendors are currently Is natively supported in experimenting with support JavaScript/ECMAScript only. literally within languages. See Microsoft's LINQ project for more information. References: http://en.wikipedia.org/wiki/XML http://en.wikipedia.org/wiki/JSON http://www.vinaytechs.com/2009/10/introduction-to-javascript-object.html And, further updates on difference between questions and answers, please visit my blog @ http://onlydifferencefaqs.blogspot.in/