Skip to content

ndjson

Build StatusMaven Central

Java library for creating and parsing ND-JSON

Uses Jackson JSON parser

Usage

Deserialization

NdJsonObjectMapperndJsonObjectMapper = newNdJsonObjectMapper();
InputStreamis = ....;
Stream<Car> readValue = ndJsonObjectMapper.readValue(is, Car.class);

Serialization

NdJsonObjectMapperndJsonObjectMapper = newNdJsonObjectMapper();
OutputStreamout = ... ;
Stream <Car> carStream = ...;
ndJsonObjectMapper.writeValue(out, carStream);

How to add NDJSON to your project

Maven:

<dependency>
<groupId>in.abilng</groupId>
<artifactId>ndjson</artifactId>
<version>1.0.1</version>
</dependency>

SBT:

libraryDependencies +="in.abilng"%"ndjson"

About

ndjson for Java

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages