Pure JSON Specification Compiler for Declarative UI
Eliminate template synchronization friction. The 2-file compiler separates HOW to display from WHAT to display, outputting standard specification JSON ready for json-to-dom.
Documentation & Guides
What is json-to-spec?
The 2-file specification compiler contract, core properties, and why data-in / data-out transforms matter.
Why this repo exists
The flaws of string templates, heavy component frameworks, and multi-file orchestrators solved by the 2-file model.
What json-to-spec is NOT
Clear non-goals: not a DOM renderer, not a virtual DOM, not a CSS framework, and not an imperative eval engine.
Runtime Architecture
Compiler pipeline breakdown: traversal, operation detection, filter evaluation, and safe token interpolation.
How It Works
Step-by-step tutorial: create structure.json, provide data.json, compile, and render live DOM with json-to-dom.
Samples & Demos
Pre-built live workbenches for Dynamic Forms and Nested Tables loading compiler bundles directly from CDN.