promplate/partial-json-parser
Parse partial JSON generated by LLM
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.
Stars
121
Forks
9
Language
Python
License
MIT
Category
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.
Related tools
promptslab/Promptify
Prompt Engineering | Prompt Versioning | Use GPT or other prompt based models to get structured...
character-ai/prompt-poet
Streamlines and simplifies prompt design for both developers and non-technical users with a low...
masci/banks
LLM prompt language based on Jinja. Banks provides tools and functions to build prompts text and...
Hunyuan-PromptEnhancer/PromptEnhancer
PromptEnhancer is a prompt-rewriting tool, refining prompts into clearer, structured versions...
Pan-ML/panml
PanML is a high level generative AI/ML development and analysis library designed for ease of use...