Open alechenninger opened 6 years ago
That's how it was designed. If they were in an array, there was no way to parse it without reading it all. If there is an incremental parser that can parse it without reading everything first, we can change that.
On Fri, Nov 17, 2017 at 12:02 PM, Alec Henninger notifications@github.com wrote:
The response contains multiple JSON objects, but they are not wrapped in an array
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lightblue-platform/lightblue-rest/issues/308, or mute the thread https://github.com/notifications/unsubscribe-auth/ADgDDQHj0m3TeTreEeGD3TuGx7CrnWjaks5s3dg9gaJpZM4QievE .
Jackson has a streaming parser, which you can parse JSON token-by-token (or in this case, parse the array start then each object separately). Do you know if we tried this? If it doesn't work I'd be curious to learn why.
The response contains multiple JSON objects, but they are not wrapped in an array