---
title: "Introduction of JSON"  
description: "In this blog, I’m explaining the concept of JSON. The JSON is the Java Script Object Notation that is used storing and exchanging the data.What is JSO"  
author: "Anchal Kesharwani"  
published: 2014-09-20  
updated: 2014-09-20  
canonical: https://www.mindstick.com/blog/692/introduction-of-json  
category: "json"  
tags: ["json"]  
reading_time: 2 minutes  

---

# Introduction of JSON

In this blog, I’m explaining the concept of JSON. The JSON is the Java Script Object Notation that is used storing and exchanging the data.

##### What is JSON?

JSON is the JavaScript Object Notation. It is used for data store and interchange. It is very lightweight that is text based open standard human readable [data exchange](https://www.mindstick.com/forum/160367/why-json-is-commonly-used-in-data-exchange-between-different-systems-and-languages). It is basically used for the data exchanging.

It is driven by the JavaScript [scripting language](https://www.mindstick.com/forum/156500/is-javascript-only-client-side-scripting-language). JSON is the language for the data formatting. The JSON used many server [side languages](https://answers.mindstick.com/qa/51734/how-to-store-data-locally-in-html5-without-using-any-server-side-languages) like ASP, PHP, Perl, Python, Ruby, JSP, etc.

JSON is alternatively as XML. It is easier to use from XML.

##### The JSON Example for three student record:

{“students”: [{“name”:”Ajay Mishra”, “age”:20, “address”:”Allahabad","phone":"555 1234568"},{“name”:”Satish Kumar”, “age”:21, “address”:”Allahabad","phone":"555 1234569"},{“name”:”Ajay Mishra”, “age”:22, “address”:”Allahabad","phone":"555 1234560"}]}

This define in the XML:

```
 <students><student><name>Ajay Mishra</name><age>20</age><address>Allahabad</address><phone>555 1234568</phone></student><student><name>Satish Kumar</name><age>21</age><address>Allahabad</address><phone>555 1234569</phone></student><student><name>Manoj Kumar</name><age>22</age><address>Allahabad</address><phone>555 1234560</phone></student></students>
```

JSON uses JavaScript syntax, but the [JSON format](https://www.mindstick.com/forum/158266/what-is-the-json-format) is text only, just like XML. Text can be read and used as a data format by any [programming language](https://www.mindstick.com/articles/329035/5-most-in-demand-programming-languages-to-consider-for-your-app-development-in-2022).

##### Similarity in JSON and XML

There are following similarity in the JSON and the XML:

· JSON and XML both support the plain text.

· Both contain self-describing [text data](https://answers.mindstick.com/qa/112298/how-do-i-implement-sentiment-analysis-in-text-data).

· Both serve as a serialization format for objects.

· JSON and XML both can be fetched with an HttpRequest.

##### Difference between JSON and XML

There are following key feature that different from the XML and JSON:

· JSON does not support end tag.

· JSON is easier than XML to read and write.

· JSON is shorter in comparison of XML.

· JSON can use the arrays and XML use the parent tags.

##### Why use JSON?

We should use the JSON for many reasons and purposes:

· JSON provide the clean data that give the object [oriented programming](https://www.mindstick.com/forum/162/object-oriented-programming-oop-s).

· JSON provide the efficiency for the code. If you use the Ajax to show [dynamic data](https://www.mindstick.com/forum/2180/dynamic-data-in-repeater) then it is easier with the JSON.

· JSON provide the scalability if your [server side](https://www.mindstick.com/forum/318/how-to-call-javascript-fuction-in-server-side) outputting the standard data format then it is easier to change and expand [your application](https://www.mindstick.com/forum/34702/please-tell-me-what-is-cross-site-scripting-and-how-is-it-harmful-for-your-application).

In this blog, I’m explaining what is JSON and why use it and also how different with the XML.

I hope this blog is helpful for you. Thanks!

---

Original Source: https://www.mindstick.com/blog/692/introduction-of-json

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
