Asynchronously parses JSON input from various sources and yields key-value pairs. Supports streaming from async iterables and ReadableStreams for memory-efficient parsing.
The JSON input as bytes, string, or stream
Key-value pairs as [key, value] tuples
const stream = fs.createReadStream('large.json');for await (const [key, value] of jsonKeyValueParserAsync(stream)) { console.log(`${key}: ${value}`);} Copy
const stream = fs.createReadStream('large.json');for await (const [key, value] of jsonKeyValueParserAsync(stream)) { console.log(`${key}: ${value}`);}
Asynchronously parses JSON input from various sources and yields key-value pairs. Supports streaming from async iterables and ReadableStreams for memory-efficient parsing.