Topic

JSON

JSON is a text format for representing structured data with objects, arrays, and a small set of value types.

At a glance

Expansion
JavaScript Object Notation
Container values
Objects and arrays

Overview

JSON is a text format for representing structured data with objects, arrays, and a small set of value types. Applications commonly use it to exchange data, but parsing valid JSON establishes syntax rather than proving that the values satisfy a particular application's rules.

Structure and values

Objects associate names with values, while arrays hold ordered values. Strings, numbers, booleans, and null provide basic values. JSON documents contain data rather than executable program instructions.

Parsing and validation

A parser converts JSON text into values understood by a programming environment. An application then needs to check the expected fields, types, and allowed values before acting on information from outside its trust boundary.

Sources and review

MOOR's explanatory text is supported by the following source links.

  1. Introducing JSON — JSON.org
  2. JSON reference — MDN Web Docs

Browse MOOR Knowledge