JSON is often viewed as an alternative to XML, another plain text data interchange format. In most cases, the JSON representation of an object is more compact than the XML representation because it does not require tags for each element. Below is an example of an object named "Gaming PC" defined in both JSON and XML.
"name": "Gaming PC",
"cpu": "Intel i7 3.4GHz", "ram": "16GB", "storage": "2TB HDD"
<cpu>Intel i7 3.4GHz</cpu>
File extension: .JSON