JSON (JavaScript Object Notation)

1 - About

JSON stands for JavaScript Object Notation.

A JSON will be seen as a JavaScript object in Javascript. As specified by RFC 4627, JSON is a lightweight data interchange format based on a subset of JavaScript syntax (ECMA-262 3rd edition).

It is a simple text format that can be used for representing nested structures of data (lists of lists of dictionaries, …).

JSON (Javascript Object Notation) has an obvious:

  • advantage over XML in that the response is lightweight. Parsing such a result is trivial in JavaScript as the format is already a valid Javascript object.
  • disavantage over tabular formats in that the space is less efficient. Example: Table - Csv Data Structure

YAML want to be an official subset of JSON. Every JSON file is also a valid YAML file.

3 - Syntax

3.1 - Rfc

  • rfc4627 - The application/json Media Type for JavaScript Object Notation (JSON)
  • rfc7493 - The I-JSON Message Format - I-JSON (short for “Internet JSON”) is a restricted profile of JSON designed to maximize interoperability and increase confidence that software can process it successfully with predictable results.

3.2 - Schema


JSON (JavaScript Object Notation) Schema defines the media type application/schema+json, a JSON based format for defining the structure of JSON data.

Example: Data Type

3.3 - Format Specification from third application

4 - Management

4.1 - Parsing

4.2 - API Building

http://jsonapi.org/ - A specification for building API in Json

Json API

4.3 - Comment

json does not support comment. A jsonc format has then make its apparition for config files.

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap