JSON is a text-based data interchange format designed to transmitting structured data.

The full form of JSON is ” JavaScript Object Notation ” and is pronounced ” Jason .” It is most commonly used to transfer data between web applications and web servers .

JSON is often seen as an alternative to XML, to another plain text data interchange format. In most cases, the JSON representation is more compact of an object than its XML representation because it does not require any tags for each element.

An example is provided below an object name “ Working PC ” that is defined as both JSON and XML.

JSON

{  "computer": {  "name": "Working PC",  "components": {  "cpu": "Intel i5 2.4GHz", "ram": "8GB", "storage": "1TB HDD"  }  }  }

XML

<computer>  <name>Working PC</name>  <components>  <cpu>Intel i5 2.4GHz</cpu>  <ram>8GB</ram>  <storage>1TB HDD</storage>  </components>  </computer>

As you can see, the object is represented more efficiently in JSON than XML.

This is why the efficiency of JSON has helped it to become a more popular choice for web applications and at the same time it is used more in place of XML.

While Ajax applications commonly use JSON, Ajax is technically ” Asynchronous JavaScript and XML .”

By the way, the difference between XML and JSON is quite negligible in small applications, while the low overhead of JSON helps to reduce bandwidth and other system resources that are used by high-traffic websites. .

File extension: .JSON

« Back to Wiki Index