Fluent Json is a Java fluent builder for creating JSON using Google Gson.
- Typesafe – It’s impossible to go wrong with Fluent Json as the API is completely typesafe.
- No mapping classes – Transform your objects into a json DOM in a functional manner.
2.0.0 Note: The API had to change slightly for Java8 compatibility. The parameter order for mapper methods have changed.
Fluent-Json is distributed through maven, so you just need to add the dependency to your pom:
<dependency> <groupId>org.jglue.fluent-json</groupId> <artifactId>fluent-json</artifactId> <version>2.0.0</version> </dependency>