commit | 67265d776a7c858e0f26f29824036977d78ad4e3 | [log] [tgz] |
---|---|---|
author | Roman Grigoriadi <roman.grigoriadi@oracle.com> | Fri Dec 14 16:19:54 2018 +0100 |
committer | Roman Grigoriadi <bravehorsie@gmail.com> | Tue Dec 18 13:41:12 2018 +0100 |
tree | 0cae34a3d62c2b1c220511d8585c4abd0d72f958 | |
parent | 4187dd0ee87a150331be1f370faba3bef49bdd5f [diff] |
Don't fail when using ResourceBundle.Control in JPMS named module. Signed-off-by: Roman Grigoriadi <roman.grigoriadi@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);