Loading, please wait...

A to Z Full Forms and Acronyms

JSON vs XML

Aug 18, 2019 JSON, XML , 2397 Views
In this article you can learn about XML vs JSON

JSON:-

JSON stands for Javascript programming language and it is very easy to understand. Because it's a lightweight data-interchange format.

Example:-

{“employees”:[

{“Name”:”Bhawna”,”Course”,”BC A”},

{“Name”:”Parul”,”Course”,”B tech”},

{“Name”:”Shakti”,”Course”,”BBA”},

]}

 

XML:-

XML stands for extensible markup language XML are used to describe the data. XML is an easy way to create formats and information it contains markup symbols to describe the page or file contents.

Example:-

<employees>

<employee>

<name> Bhawna </name>

<Course> BCA </Course>

</employee>

<employee>

<name> Parul </name>

<Course> B tech </Course>

</employee>

<employee>

<name> Shakti </name>

<Course> BBA </Course>

</employee>

</employees>

Difference between JSON and XML

Sr. No.

JSON

XML

1

JSON stands for Javascript object notation.

XML stands for Extensible markup language.

2

JSON is less secured than XML.

XML is more secured than JSON.

3

JSON is easy to understand.

XML is less easy to understand.

4

JSON is very simple.

XML is less simple.

5

JSON support only text and number data type. Graphs etc.

XML support many data types such as text, images,

6

JSON is data-oriented.

XML is document-oriented.

7

The JSON file is more human-readable. 

XML files are less human-readable

8

JSON support Array.

XML does not support Array.

A to Z Full Forms and Acronyms