{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/4"}],"enrichment":{"capability":"Streams JSON data from files, URLs, or iterators without loading the entire document into memory, offering both dict/list-like and visitor-based interfaces for parsing and encoding.","skillfed_tags":["streaming-io","json-parsing","memory-efficient"],"use_cases":["Process large JSON files that exceed available memory by streaming them incrementally.","Parse NDJSON (newline-delimited JSON) or JSON Lines formats from log files or APIs.","Consume JSON data from HTTP responses without buffering the entire response body.","Implement visitor-pattern callbacks to extract specific fields from deeply nested JSON structures.","Mix transient and persistent parsing modes to balance memory usage and random access within a single document."],"what_it_does":"json-stream is a JSON parser and encoder that processes data incrementally rather than loading entire documents into memory. It provides two primary modes: transient mode for minimal memory footprint (data is discarded after reading), and persistent mode for full random access like the standard library's json module. The package supports streaming from files, URLs, and iterators, and can handle multiple JSON documents in a single stream or JSON mixed with other data.\n\nThe package includes a visitor-based interface for depth-first traversal, native code parsing speedups for common platforms via json-stream-rs-tokenizer, and a pure Python fallback. It is designed to reduce memory consumption and latency when processing large or continuously arriving JSON data, making it suitable for applications that cannot afford to buffer entire documents.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem (memory-efficient JSON streaming) that the standard library does not address. It is production-stable and supports current Python versions. Install it if you regularly work with large JSON files, streaming APIs, or NDJSON formats."},"id":"json-stream","links":{"html":"https://skillfed.io/packages/json-stream","md":"https://skillfed.io/packages/json-stream.md","pypi":"https://pypi.org/project/json-stream/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-27","license_spdx":null,"license_treatment":"permissive","name":"json-stream","python_support":"supports_current","summary":"Streaming JSON encoder and decoder"},"popularity":{"monthly_downloads":1233796,"position":4180,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.5.1"}
