Ion (serialization format) explained

Ion
Extension:.ion
Developer:Amazon
Type:Data interchange

Ion is a data serialization language developed by Amazon. It may be represented by either a human-readable text form or a compact binary form. The text form is a superset of JSON; thus, any valid JSON document is also a valid Ion document.

Data types

As a superset of JSON, Ion includes the following data types

The nebulous JSON 'number' type is strictly defined in Ion to be one of

Ion adds these types:

Each Ion type supports a null variant, indicating a lack of value while maintaining a strict type (e.g.,,).

The Ion format permits annotations to any value in the form of symbols. Such annotations may be used as metadata for otherwise opaque data (such as a blob).

Implementations

Examples

Sample document

// comments are allowed in Ion files using the double forward slash

Uses

Tooling and extensions

External links

Notes and References

  1. Web site: We are the Amazon Managed Blockchain and Amazon QLDB Teams – Ask the AWS Experts – November 29 @ 3PM PST / 6PM EST. 28 November 2018.
  2. Web site: Announcing PartiQL: One query language for all your data. August 2019.