Javascript – How to split chunks into individual JSON objects
I am fetching from an api which sends data in a stream. Unfortunately when I process the data in chunks, the chunks come as multiple JSON strings like this; { "productName": "bag", "code": "BGX-112" } { "productName": "purse", "code": "PUSR-112"…