Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles  

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 
Similarities and difference between JSON and XML
Question Posted on 08 Nov 2020

Home >> 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


Other Important Questions
Colour coding in ListBox
Void Function return value with out parameter
What is Substitution control in asp.net 4.0
How to stop the clientside validation of an entire page
get session variable value in html page







Hello Sir/Madam as Covid is spreading we request you to please take care your self and visit helpsthepoor.com

 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |