Java library for creating and parsing ND-JSON
Uses Jackson JSON parser
Deserialization
NdJsonObjectMapperndJsonObjectMapper = newNdJsonObjectMapper();
InputStreamis = ....;
Stream<Car> readValue = ndJsonObjectMapper.readValue(is, Car.class);Serialization
NdJsonObjectMapperndJsonObjectMapper = newNdJsonObjectMapper();
OutputStreamout = ... ;
Stream <Car> carStream = ...;
ndJsonObjectMapper.writeValue(out, carStream);Maven:
<dependency>
<groupId>in.abilng</groupId>
<artifactId>ndjson</artifactId>
<version>1.0.1</version>
</dependency>SBT:
libraryDependencies +="in.abilng"%"ndjson"