Zero-Overhead Notation format

From Wiki, the portfolio encyclopedia
Open-source side project by Roni Bhakta for lightweight LLM data serialization

Zero-Overhead Notation (ZON) is an open-source data serialization side project started in late 2025 by Roni Bhakta. It was designed to reduce token consumption when passing structured data to Large Language Models (LLMs) while keeping the payload human-readable and lossless.

Overview

[edit]

When passing structured payloads (such as JSON or YAML) into the context window of large language models, a significant portion of the token budget is spent on repeated keys, quotation marks, brackets, and commas. ZON eliminates redundant delimiters and hoists object schemas into compact header declarations.

In benchmarks, ZON cuts token usage by roughly 50% compared to standard JSON structures while maintaining a 98.6% retrieval accuracy rate. Official libraries are published on PyPI (Python) and npm (TypeScript).

Syntax and design

[edit]

Instead of repeating field names for every object in a collection, ZON declares the array length and field schema once, followed by newline-delimited positional records. Scalar values and nested trees use clean indentation without quoting unambiguous strings.

Features

[edit]
  • Schema Validation & Type Coercion: Official Python and TypeScript libraries validate payload types and coerce primitives at parse time.
  • Streaming Parser: Supports incremental parsing of ZON chunks emitted directly from streaming LLM completions.
  • Lossless Round-Tripping: Converts bi-directionally between JSON objects and ZON notation without losing type fidelity.

See also

[edit]