json-minified-payloads
Installation
SKILL.md
JSON Minification Protocol (Zero-Whitespace Payloads)
Overview
When LLMs generate or ingest structured JSON objects (e.g., function calling tool parameters, API response payloads, configuration maps), standard libraries default to pretty-printed formatting with 2-to-4 space indentation and line breaks on every key-value pair.
In multi-line JSON structures, indentation whitespace and newline characters account for 30% to 50% of the entire token payload. For a 500-record data extraction run, pretty-printing wastes over 25,000 output tokens on decorative formatting.
The JSON Minification Protocol strips all unnecessary whitespace and newlines from structured data streams, formatting payloads as dense single-line strings ({"a":1,"b":2}) with zero loss of semantic fidelity.