TSON, or Typed Schema Object Notation, is a newly introduced schema system designed to enhance data definition and validation. It functions as a superset of JSON, incorporating immutable, hash-pinned schemas. A key feature is that the schema definitions are treated as data themselves, allowing for a verifiable chain where a document names its schema, and that schema, in turn, names its meta-schema.
The system uses a single hash to verify the entire chain of schema definitions, ensuring integrity and immutability. TSON's data format is Unicode-first and shares the same lexer, tooling, and verification processes as its schemas. Schemas are structured as maps with a compact grammar, making them readable and writable.
A working implementation, tson-java, is available, including a command-line tool. This tool allows users to initialize example schemas and data documents, and to validate data against a schema. The validation process reports all problems simultaneously, providing a path and reason for each issue.
TSON schemas support explicit field states: fields are required by default, a tilde (~) supplies a default value, an equals sign (=) pins a value, and a question mark (?) makes a field optional. This provides clear declarations for data contracts that might otherwise be handled by validation code.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
TSON (Typed Schema Object Notation) is a new schema system that extends JSON with immutable, hash-pinned schemas, where schema definitions are themselves data. This system allows documents to name their schema, and the schema to name its meta-schema, with a single hash verifying the entire chain, aiming to provide robust data validation and consistency.