crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Similarities and difference between JSON and XML
Question Posted on 08 Nov 2020Home >> DotNet >> ASP.NET >> Similarities and difference between JSON and XML

Similarities and difference between JSON and XML
First we will discuss the difference between JSON and XML
(1)JSON:-JSON is JavaScript Object Notation
XML:-XML is Extensible Markup Language
(2)JSON:-Base for JSON is Javascript Language.
XML:-XML is derived from SGML.
(3)JSON:-JSON is the way to represent objects.
XML:-XML uses tag structure to display data items.
(4)JSON:-Doesnot have support for Namespaces.
XML:-XML supports Namespaces.
(5)JSON:-JSON supports array
XML:-XML doesnot support array.
(6)JSON:-JSON files are easy to read in comparison to XML.
XML:-XML files is little bit complex to read and interpret.
(7)JSON:-JSON doesnot use end tag and its shorter.
XML:-XML have both start and end tag.
(8)JSON:-JSON is less secured then XML.
XML:-XML is more secured than JSON.
(9)JSON:-JSON will not support comments.
XML:-XML supports comments.
(10)JSON:-JSON supports only UTF-8 encoding.
XML:-XML supports various encoding.
(11)JSON:-JSON can be parsed by a standard JavaScript function.
XML:-XML has to be parsed with an XML parser.

Now comes to similarities between JSON and XML
(1)Both of these are self describing
(2)Both of these are hierarchical
(3)Both of these are parsed and used by lots of programming languages
(4)Both of these can be fetched with an XMLHttpRequest
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Use of Calendar control in dotnet with code

How to improve Front End UI performance of dotnet web application?

File upload in dotnet

reverse a string

function of garbage collector






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap