Java library for creating and parsing ND-JSON
Uses Jackson JSON parser
Deserialization
NdJsonObjectMapper ndJsonObjectMapper = new NdJsonObjectMapper();
InputStream is = ....;
Stream<Car> readValue = ndJsonObjectMapper.readValue(is, Car.class);
Serialization
NdJsonObjectMapper ndJsonObjectMapper = new NdJsonObjectMapper();
OutputStream out = ... ;
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"