Download the BYJU'S Exam Prep App for free GATE/ESE preparation videos & tests - Download the BYJU'S Exam Prep App for free GATE/ESE preparation videos & tests -

Difference between JSON and XML

What is JSON?

JSON stands for JavaScript Object Notation. It is a format for structuring or storing, and transporting data. These types of formats are generally preferred by web applications to share.

It is a lightweight data-interchange format, and it is totally language independent. It is based on the JavaScript programming language and is easy to understand and generate. Basically, it is an open formal document format and information exchange design that utilises intelligible text to store and communicate information.

What is XML?

XML stands for eXtensible Markup Language · It is a markup language that was created to store and transport data ·

Difference between JSON and XML

S.No. JSON XML
1 The full form of JSON is JavaScript Object Notation. The full form of XML is Extensible Markup Language.
2 It is unable to display the data. It has the ability to display data.
3 As the name suggests JSON is based on the JavaScript language. XML is truly based on SGML.
4 In JSON, it is easy to retrieve the value. In XML, it is difficult to retrieve the value.
5 JSON does not give any help for namespaces. XML supports namespaces.
6 JSON supports arrays. XML doesn’t support arrays.
7 It prefers only UTF-8 encoding. It prefers several encoding.
8 Comments are not supported by JSON. Comments are supported by XML.
9 It is less secure as compared to the XML. It is more secure as compared to the JSON.
10 Here, the end tag is not preferable. End tags are preferable.
11 Here, the files and documents are easy-to-read. The files are comparatively tough to read.

Keep learning and stay tuned to get the latest updates on GATE Exam along with GATE Eligibility Criteria, GATE 2023, GATE Admit Card, GATE Application Form, GATE Syllabus, GATE Cut off, GATE Previous Year Question Paper, and more.

Comments

Leave a Comment

Your Mobile number and Email id will not be published.

*

*