promplate/partial-json-parser

Parse partial JSON generated by LLM

55
/ 100
Established

Handles incomplete JSON mid-stream by selectively completing partial strings, numbers, arrays, and objects through configurable `Allow` flags that specify which types can remain unfinished. The zero-dependency Python library reconstructs valid JSON from LLM token streams, enabling real-time data extraction before response completion. Designed for structured output from language models, with a companion JavaScript implementation and interactive playground for testing edge cases.

121 stars. Used by 3 other packages. Available on PyPI.

Maintenance 6 / 25
Adoption 13 / 25
Maturity 25 / 25
Community 11 / 25

How are scores calculated?

Stars

121

Forks

9

Language

Python

License

MIT

Last pushed

Nov 28, 2025

Commits (30d)

0

Reverse dependents

3

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/promplate/partial-json-parser"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.