JSONStream is an open-source Node.js library for parsing and generating JSON through streaming interfaces. It processes JSON incrementally instead of requiring complete documents to be loaded into memory. Developers can extract specific objects or values using JSONPath-inspired expressions. The parser supports wildcard matching, recursive traversal, and configurable path patterns. It can also emit matching keys, paths, and associated values. Mapping functions allow extracted data to be transformed or filtered before downstream processing. The library includes streaming serializers for producing JSON arrays and objects from individual records. JSONStream integrates with standard Node.js streams and is useful for processing large API responses, database exports, and structured data pipelines.
Features
- Incremental JSON Stream Parsing
- JSONPath-Style Object and Value Extraction
- Wildcard and Recursive Path Matching
- Custom Data Mapping and Filtering
- Streaming JSON Array and Object Serialization
- Node.js Pipeline and Large Dataset Processing