sindresorhus / get-stream

Get a stream as a string, Buffer, ArrayBuffer or array
MIT License
341 stars 33 forks source link

Document how to stream JSON arrays #96

Closed ehmicky closed 1 year ago

ehmicky commented 1 year ago

This PR documents how to parse JSON array streams incrementally, as opposed to blocking the event loop once at the end using JSON.parse().

This does not cover actual JSON streams formats (where each line is a single object, and there are no [ ] delimiters) although the utility mentioned supports those too.

ehmicky commented 1 year ago

Fixed :+1: