Overview of json-stream features
masterjson-stream is a simple streaming JSON parser and encoder designed to reduce memory consumption and latency.
Key Capabilities:
- Streaming Reading: Decode JSON from files, URLs, or iterators using a pythonic
dict/list-like interface or a visitor-based interface. It can process multiple JSON documents in a single stream and handle JSON mixed with non-JSON data. - Streaming Writing: Stream JSON objects as they are being generated.
- Performance: Uses native code parsing speedups (Rust tokenizer) on most common platforms, with a pure Python fallback.
- Memory Efficiency: Only requires enough memory to hold the data currently being parsed.