SlideShare a Scribd company logo
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

Oops in PHP
Oops in PHPOops in PHP
Oops in PHP
Mindfire Solutions
 
ADO .Net
ADO .Net ADO .Net
ADO .Net
DrSonali Vyas
 
ADO.NET
ADO.NETADO.NET
ADO.NET
Wani Zahoor
 
MVC in PHP
MVC in PHPMVC in PHP
MVC in PHP
Vineet Kumar Saini
 
Bridge Design Pattern
Bridge Design PatternBridge Design Pattern
Bridge Design Pattern
Shahriar Hyder
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
Knoldus Inc.
 
Domain Driven Design Development Spring Portfolio
Domain Driven Design Development Spring PortfolioDomain Driven Design Development Spring Portfolio
Domain Driven Design Development Spring Portfolio
Srini Penchikala
 
Synchronization.37
Synchronization.37Synchronization.37
Synchronization.37
myrajendra
 
2 dtd - validating xml documents
2   dtd - validating xml documents2   dtd - validating xml documents
2 dtd - validating xml documents
gauravashq
 
Windows form application - C# Training
Windows form application - C# Training Windows form application - C# Training
Windows form application - C# Training
Moutasm Tamimi
 
4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT
Ajay Chimmani
 
An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOM
Mindy McAdams
 
XQuery
XQueryXQuery
XQuery
Raji Ghawi
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object Model
WebStackAcademy
 
Drools rule Concepts
Drools rule ConceptsDrools rule Concepts
Drools rule Concepts
RaviShankar Mishra
 
CSS
CSSCSS
Introduction To C#
Introduction To C#Introduction To C#
Introduction To C#
SAMIR BHOGAYTA
 
Document object model
Document object modelDocument object model
Document object model
Amit kumar
 
Oop concepts in python
Oop concepts in pythonOop concepts in python
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
chomas kandar
 

What's hot (20)

Oops in PHP
Oops in PHPOops in PHP
Oops in PHP
 
ADO .Net
ADO .Net ADO .Net
ADO .Net
 
ADO.NET
ADO.NETADO.NET
ADO.NET
 
MVC in PHP
MVC in PHPMVC in PHP
MVC in PHP
 
Bridge Design Pattern
Bridge Design PatternBridge Design Pattern
Bridge Design Pattern
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
 
Domain Driven Design Development Spring Portfolio
Domain Driven Design Development Spring PortfolioDomain Driven Design Development Spring Portfolio
Domain Driven Design Development Spring Portfolio
 
Synchronization.37
Synchronization.37Synchronization.37
Synchronization.37
 
2 dtd - validating xml documents
2   dtd - validating xml documents2   dtd - validating xml documents
2 dtd - validating xml documents
 
Windows form application - C# Training
Windows form application - C# Training Windows form application - C# Training
Windows form application - C# Training
 
4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT
 
An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOM
 
XQuery
XQueryXQuery
XQuery
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object Model
 
Drools rule Concepts
Drools rule ConceptsDrools rule Concepts
Drools rule Concepts
 
CSS
CSSCSS
CSS
 
Introduction To C#
Introduction To C#Introduction To C#
Introduction To C#
 
Document object model
Document object modelDocument object model
Document object model
 
Oop concepts in python
Oop concepts in pythonOop concepts in python
Oop concepts in python
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 

Viewers also liked

Web Services with Objective-C
Web Services with Objective-CWeb Services with Objective-C
Web Services with Objective-C
Juio Barros
 
iOS: Web Services and XML parsing
iOS: Web Services and XML parsingiOS: Web Services and XML parsing
iOS: Web Services and XML parsing
Jussi 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 iOS
gillygize
 
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
Umar Ali
 
Webservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview QuestionsWebservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview Questions
H2kInfosys
 
URLSession Reloaded
URLSession ReloadedURLSession Reloaded
URLSession Reloaded
Kaz Yoshikawa
 
JSON and REST
JSON and RESTJSON and REST
JSON and REST
Robert MacLean
 

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- 2
Umar Ali
 
Understanding Dom
Understanding DomUnderstanding Dom
Understanding Dom
LiquidHub
 
8023.ppt
8023.ppt8023.ppt
8023.ppt
PoojaTripathi92
 
Applied xml programming for microsoft
Applied xml programming for microsoftApplied xml programming for microsoft
Applied xml programming for microsoft
Raghu nath
 
E05412327
E05412327E05412327
E05412327
IOSR-JEN
 
0001 Genero Terms
0001 Genero Terms0001 Genero Terms
0001 Genero Terms
guest174e18
 
0001 Genero Terms
0001 Genero Terms0001 Genero Terms
0001 Genero Terms
guest174e18
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
Himanshu Soni
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
Himanshu 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 java
Yash Patel
 
Net framework
Net frameworkNet framework
Net framework
jhsri
 
Difference between rdf, odata and gdata
Difference between rdf, odata and gdataDifference between rdf, odata and gdata
Difference between rdf, odata and gdata
Umar Ali
 
0001 Genero Terms
0001 Genero Terms0001 Genero Terms
0001 Genero Terms
guest174e18
 
[Android] Web services
[Android] Web services[Android] Web services
[Android] Web services
Nikmesoft Ltd
 
dot NET Framework
dot NET Frameworkdot NET Framework
dot NET Framework
Roy Antony Arnold G
 
c#.pptx
c#.pptxc#.pptx
Introduction to Web Services Protocols.ppt
Introduction to Web Services Protocols.pptIntroduction to Web Services Protocols.ppt
Introduction to Web Services Protocols.ppt
Dr.Saranya K.G
 
Parsing XML & JSON in Apex
Parsing XML & JSON in ApexParsing XML & JSON in Apex
Parsing XML & JSON in Apex
Abhinav Gupta
 
Net framework
 Net framework Net framework
Net framework
ANAGHA T SASIDHARAN
 
epicenter2010 Open Xml
epicenter2010   Open Xmlepicenter2010   Open Xml
epicenter2010 Open Xml
Craig 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 api
Umar 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 4
Umar 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 mvc
Umar 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 mvc
Umar 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 1
Umar Ali
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
Umar Ali
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
Umar Ali
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
Umar 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 sites
Umar Ali
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
Umar Ali
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
Umar 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 trends
Umar 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 engines
Umar Ali
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
Umar Ali
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
Umar 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

Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 

Recently uploaded (20)

Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 

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/