I want to achieve something similar to CSV streaming processing:
//read input file
.split(body().tokenize("\n", 100, false)).streaming()
.unmarshal(new BindyCsvDataFormat( ...
I can control the content of input file, for example, I can have each JSON object on new line without JSON start array and comma after each object:
{"id": "foo1"}
{"id": "foo2"}
...
And then follow the same flow as in CSV (split and stream), but I can't unmarshal using ListJacksonDataFormat or .json(JsonLibrary.Jackson)
How to do this? Or is there another way of reading big JSON array?
Note: This processing has to be fast, so I can't afford unmarshal to csv then marshal JSON as explained here (which seems a gross workaround).