Name: yasson
Owner: Eclipse Foundation
Owner: Eclipse EE4J
Description: Yasson project
Created: 2016-11-18 14:46:19.0
Updated: 2018-05-20 13:56:22.0
Pushed: 2018-05-23 13:47:36.0
Homepage: null
Size: 1237
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Yasson is a Java framework which provides a standard binding layer between Java classes and JSON documents. This is similar to what JAXB is doing in the XML world. Yasson is an official reference implementation of JSON Binding (JSR-367).
It defines a default mapping algorithm for converting existing Java classes to JSON suitable for the most cases:
b jsonb = JsonbBuilder.create();
ng result = jsonb.toJson(someObject);
For whom it's not enough it provides rich customization abilities through a set of annotations and rich programmatic API:
reate custom configuration
bConfig config = new JsonbConfig()
ithNullValues(true)
ithFormating(true);
reate Jsonb with custom configuration
b jsonb = JsonbBuilder.create(config);
se it!
ng result = jsonb.toJson(someObject);