JSON

Stands for "JavaScript Object Notation."

JSON is a standard text-based data interchange format. It formats data in a way that is both human- and machine-readable. Web applications and web servers use JSON files to transfer data between applications and servers. While JSON is based on JavaScript, it is a language-independent format that is supported by many programming languages.

JSON is similar to XML (another plain text data interchange format) but is more compact because it does not require separate tags for each element. Instead, JSON contains objects within curly brackets ({}). Each attribute has a name and value, separated by colons (:). A value can consist of a string within quotation marks, a number, a boolean (true or false), another object, or an array contained within square brackets ([]). Attribute name/value pairs are separated by commas (,).

For example, below is an example of a book defined in JSON and XML.

JSON

{
 "book": {
  "title": "A Study in Scarlet",
  "author": "Arthur Conan Doyle",
  "publisher": {
   "name": "Ward Lock & Co", "year": "1887", "country": "United Kingdom"
  }
 }
}

XML

<book>
 <title>A Study in Scarlet</title>
 <author>Arthur Conan Doyle</author>
 <publisher>
  <name>Ward Lock & Co</name>
  <year>1887</year>
  <country>United Kingdom</country>
 </publisher>
</book>

Even though the JSON and XML objects use roughly the same number of lines to define the book's information, the JSON code uses a lot less text and is easier to read. It also requires less data to store and transfer. These data savings might be negligible for a single data file, but JSON's low overhead can add up to reduce bandwidth and other system resources for web applications that use a lot of data files.

File extension: .JSON

Updated April 28, 2023 by Brian P.

quizTest Your Knowledge

Which company created the "Site Reliability Engineering" approach to development?

A
Amazon
0%
B
Microsoft
0%
C
Google
0%
D
SAP
0%
Correct! Incorrect!     View the SRE definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of JSON on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.