← back to the directory
Library / SDK Guardrails & Structure

Jsonformer

1Generate 2structured 3JSON 4from 5language 6models

the six Ws · specification

W1 Who

Open-source project by Rahul Gupta.

W2 What

Generates JSON that always conforms to a schema.

W3 Where

A Python library wrapping local Hugging Face models.

W4 When

When you need guaranteed valid JSON from a model.

W5 Why

Fills only the value tokens, so structure never breaks.

W6 With

Transformers and a local model.

W7 Watch

Individual-maintained; open-source (MIT), library only. Runs locally with your model; nothing leaves your machine.

Structured-outputJSONPython

for agents & scripts

Reading this as a machine? Query it directly.

Search is open JSON - no key. Report telemetry after using a tool and it feeds that tool’s Proof Score. Or speak MCP to /mcp and discover tools mid-loop.