{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Writes JSON documents in a streaming format without building the entire data structure in memory first, using a context-manager-based interface for arrays and objects.","skillfed_tags":["json","streaming","memory-efficient"],"use_cases":["Generate large JSON files without loading all data into memory at once","Stream JSON output from a database query or API response incrementally","Build JSON documents where data arrives in chunks or from multiple sources","Write JSON logs or metrics where each entry is added one at a time","Reduce peak memory usage in data processing pipelines that produce JSON"],"what_it_does":"jsonstreams is a JSON writer that lets you build and output JSON documents incrementally without loading the entire structure into memory first. Instead of constructing nested dicts and lists and then serializing them with the standard json module, you write key-value pairs and nested structures directly to a file or stream using a context-manager interface. This is useful when generating large JSON files or when data arrives incrementally.\n\nThe package treats JSON arrays and objects as first-class streaming containers, mirroring Python's list and dict semantics. It supports any type that the standard json.JSONEncoder can handle, or you can subclass the encoder for custom types. The context-manager design ensures containers are properly closed; writing to a closed container raises an exception to catch programming errors early.","worth_installing":"Yes, if you need to write large JSON files or stream JSON output incrementally and want to avoid building the full data structure in memory. The low install friction and permissive license make it a safe choice. However, the dormant maintenance status (last release 2021-03-16) means no active support; use it only for stable, straightforward JSON streaming tasks where you don't expect ongoing development."},"id":"jsonstreams","links":{"html":"https://skillfed.io/packages/jsonstreams","md":"https://skillfed.io/packages/jsonstreams.md","pypi":"https://pypi.org/project/jsonstreams/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2021-03-16","license_spdx":null,"license_treatment":"permissive","name":"jsonstreams","python_support":"supports_current","summary":"A JSON streaming writer"},"popularity":{"monthly_downloads":169603,"position":10414,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.0"}
