Tech

JSON (JavaScript Object Notation)

Definition

A lightweight data interchange format that is easy for humans to read and write and easy for machines to parse and generate.

Try the free calculator

Use our JSON Formatter to run the numbers yourself.

JSON is a text-based data format derived from JavaScript syntax that has become the standard for data exchange on the web. It supports six data types: strings, numbers, booleans, null, arrays, and objects (key-value pairs). Its simplicity and universality make it the preferred format for APIs, configuration files, and data storage.

JSON replaced XML as the dominant data interchange format because of its lighter syntax and native compatibility with JavaScript. Virtually every programming language has built-in or standard library support for parsing and generating JSON.

Common uses include API request and response payloads, configuration files (package.json, tsconfig.json), NoSQL database storage (MongoDB), and local storage in web applications. JSON Schema provides a way to validate JSON data structure, while JSON Web Tokens (JWT) use JSON as the payload format for authentication tokens.

Related Calculators

Related Terms

Related Articles

Stay Updated

Get notified about new tools, features, and exclusive deals. No spam, ever.