Hacker News

dadbod
Jsontap – Reactive access to incrementally parsed JSON for Python github.com

dadbodop6 hours ago

Reactive access to incrementally parsed JSON for Python. Consume fields and array items as they arrive — no need to wait for the full payload.

jsontap builds a reactive node tree on top of ijson's streaming parser. You await scalar/object values and async for over arrays while the JSON is still being fed in, one chunk at a time. This makes it ideal for LLM token streams, chunked HTTP responses, or any scenario where JSON arrives incrementally.

hn-front (c) 2024 voximity
source