🍋
Menu
.json Code

JSON (JavaScript Object Notation)

JSON is a lightweight data interchange format that is easy for humans to read and write and easy for machines to parse and generate. It is the dominant format for web APIs, configuration files, and data storage in modern applications.

MIME Type

application/json

Type

Text

Compression

Lossless

Advantages

  • + Human-readable and writable with minimal syntax
  • + Native parsing in every programming language
  • + Dominant format for REST APIs and web services
  • + Lightweight — less verbose than XML

Disadvantages

  • No comment syntax — cannot annotate configuration files
  • No native date, binary, or schema types
  • Trailing commas cause parse errors in strict parsers

When to Use .JSON

Use JSON for API responses, configuration files, data exchange between services, and any structured data that needs to be human-readable.

Technical Details

JSON supports six data types: strings, numbers, booleans, null, arrays, and objects (key-value maps). It uses UTF-8 encoding and has no support for comments, dates, or binary data natively.

History

Douglas Crockford popularized JSON in the early 2000s, deriving it from JavaScript object literal syntax. It was standardized as ECMA-404 in 2013 and RFC 8259 in 2017, becoming the universal API data format.

Convert from .JSON

Convert to .JSON

Related Formats

Related Terms

Learn More

Use Cases