I have an InputStream containing an array of JSON objects. Each individual object can be parsed to a Java class Person using Jackson's ObjectMapper:
public class Person {
public String name;
public Int age;
...
}
InputStream myStream = connection.getInputStream(); // [{name: "xx", age: 00}, {...}]
ObjectMapper objectMapper = new ObjectMapper();
How do I parse the JSON-stream into a new Stream<Person> using Jackson without having all the data in the memory?