Re:Progressive JSON
by danenania on Sunday June 01, 2025 @02:11PM
(#44152728)
One way is to eagerly call JSON.parse as fragments are coming in. If you also split on json semantic boundaries like quotes/closing braces/closing brackets, you can detect valid objects and start processing them while the stream continues.
[ Parent
| on HN ]