JSON (JavaScript Object Notation)

0
107

JSON is a text-based data interchange format designed to perform 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 servers.

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

An example is provided below an object name “Working PC,” 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>I Am Help</name>
<components>
<cpu>Intel i9 8.4GHz</cpu>
<ram>16GB</ram>
<storage>10TB HDD</storage>
</components>
</computer>

As you can see, the object is represented more efficiently in JSON than in 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 technical “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 reduce bandwidth and other system resources used by high-traffic websites.

File extension: .JSON

LEAVE A REPLY

Please enter your comment!
Please enter your name here