1rgs/jsonformer
A Bulletproof Way to Generate Structured JSON from Language Models observed · 2026-08-28
Health v2 · maintenance only
30/100
- Activity 0
- Release rhythm 35
- Longevity 87
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1222
- days_rel: n/a
- days_push: 921
- n_releases_24m: 0
Adoption not part of the score
4934 stars · 183 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Jsonformer is a Python library that wraps Hugging Face causal language models to generate syntactically correct JSON conforming to a given JSON Schema. It fills in fixed structural tokens itself and only delegates content token generation to the model, making structured output reliable.
Use cases
- generate structured from a language model
- force an llm to output valid matching a schema
- extract structured data from text with a local huggingface model
- get reliable output without prompt engineering or post-processing
- generate nested objects and arrays from small language models
When to choose
- you use Hugging Face transformer models and need guaranteed schema-valid JSON
- you want structured output from small local models without brittle prompt parsing
- your schemas use numbers, booleans, strings, arrays, and objects
When to avoid
- you need full JSON Schema support beyond the supported subset
- you use OpenAI or other API-based models with native structured output
- you need actively developed features or broad model backend support
Facets
library · maturity maintenance
llm-inference serialization prompt-engineering large-language-models developer-tools python -schema structured-output huggingface constrained-generation llm natural-language-processing
1 source
- readme: https://github.com/1rgs/jsonformer · fetched 2026-08-28 · 6067df3710e9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| 1rgs/jsonformer | main | 30 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem