TOON Format Specification

May 20, 2026 ยท View on GitHub

SPEC v3.2 License: MIT

This repository contains the official specification for Token-Oriented Object Notation (TOON), a line-oriented, indentation-based encoding of the JSON data model. See github.com/toon-format/toon for an overview, rationale, and benchmarks.

๐Ÿ“‹ Specification

โ†’ Read the full specification (SPEC.md)

  • Version: 3.2 (2026-05-20)
  • Status: Working Draft
  • License: MIT

The specification includes ABNF snippets, encoding rules, validation requirements, and conformance criteria.

Serialization Example

JSONTOON
{
  "users": [
    { "id": 1, "name": "Ada" },
    { "id": 2, "name": "Linus" }
  ]
}
users[2]{id,name}:
  1,Ada
  2,Linus

See examples/ and SPEC.md Appendix A for more shapes.

Media Type & File Extension

Media type text/toon (provisional, UTF-8), file extension .toon. See ยง17 of SPEC.md.

Contributing

We welcome contributions to improve the specification! Please see CONTRIBUTING.md for:

  • How to propose spec changes
  • The RFC process for major changes
  • Guidelines for submitting issues and pull requests

For implementation-specific questions or bugs, please refer to the respective implementation repository.

Versioning

The TOON specification uses MAJOR.MINOR versioning. See VERSIONING.md for the policy and compatibility guarantees.

Resources

License

MIT License ยฉ 2025-PRESENT Johann Schopplich