| commit | 56f7f0bf5d3cca9d776f6723fcd9240877077fb2 | [log] [tgz] |
|---|---|---|
| author | Andrew Guibert <andy.guibert@gmail.com> | Wed Sep 04 13:48:04 2019 -0500 |
| committer | GitHub <noreply@github.com> | Wed Sep 04 13:48:04 2019 -0500 |
| tree | 535426a0f7fa48363c41968270e01a7ef443ad51 | |
| parent | f0fb187bc54f68f67c60bff40bc6550f56682747 [diff] | |
| parent | c204eaea1cb872f3130bca4d49370ea31288f4e6 [diff] |
Merge pull request #325 from aguibert/travis-disable-jmh Disable JHM test in Travis build and clean up tck.sh script for running locally
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);