{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"}],"enrichment":{"capability":"Parses incomplete JSON strings generated by LLM streaming, extracting usable data before the full response arrives, and can complete partial JSON to valid syntax.","skillfed_tags":["llm-integration","json-streaming"],"use_cases":["Stream structured data from LLM APIs (OpenAI, Anthropic, etc.) and display partial results to users as tokens arrive.","Extract valid JSON objects from incomplete LLM responses mid-generation without waiting for completion.","Build chat interfaces that show structured data (like JSON-formatted lists or tables) incrementally as the model generates them.","Parse and validate JSON from sources that may truncate or cut off mid-response, recovering what data is available.","Debug or inspect malformed JSON by attempting to extract the maximum valid structure before the error point."],"what_it_does":"partial-json-parser handles a specific problem in LLM integration: when streaming JSON responses token-by-token, the JSON is incomplete until the final token arrives, making standard JSON parsing fail. This library extracts and returns whatever valid data it can from incomplete JSON, and can also complete partial JSON strings to valid syntax so they parse cleanly.\n\nThe parser works like the standard json.loads when given complete JSON, but accepts an optional `allow_partial` parameter (bitwise flags from the `Allow` enum) to specify which data types are permitted to be incomplete\u2014strings, numbers, arrays, objects, booleans, null, or special values like NaN and Infinity. By default it allows all partial types. It has zero runtime dependencies, is implemented in pure Python, and includes type hints.","worth_installing":"Yes. This is a specialized, well-maintained tool with zero dependencies, permissive licensing, and a clear use case in modern LLM-streaming workflows. The active maintenance, recent releases, and top-5000 PyPI position indicate real adoption. Install if you're building applications that stream structured JSON from language models."},"id":"partial-json-parser","links":{"html":"https://skillfed.io/packages/partial-json-parser","md":"https://skillfed.io/packages/partial-json-parser.md","pypi":"https://pypi.org/project/partial-json-parser/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-17","license_spdx":null,"license_treatment":"permissive","name":"partial-json-parser","python_support":"supports_current","summary":"Parse partial JSON generated by LLM"},"popularity":{"monthly_downloads":6367402,"position":1920,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.2.1.1.post7"}
