| commit | 5731604971416977d0815e2249ade2c3e93b6e59 | [log] [tgz] |
|---|---|---|
| author | David Kral <david.k.kral@oracle.com> | Tue Sep 03 11:22:43 2019 +0200 |
| committer | David Kral <david.k.kral@oracle.com> | Tue Sep 03 11:22:43 2019 +0200 |
| tree | af8a558ff17e483d2fe8e0cbcb7316ad62a6fe0b | |
| parent | cebd1fd88fa115cde2f22f06e523ee9f541b62f9 [diff] |
TCK test support added to travis build Signed-off-by: David Kral <david.k.kral@oracle.com>
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:
Jsonb jsonb = JsonbBuilder.create(); String result = jsonb.toJson(someObject);
For whom it's not enough it provides rich customization abilities through a set of annotations and rich programmatic API:
// Create custom configuration JsonbConfig config = new JsonbConfig() .withNullValues(true) .withFormating(true); // Create Jsonb with custom configuration Jsonb jsonb = JsonbBuilder.create(config); // Use it! String result = jsonb.toJson(someObject);