| commit | 4c2fd69904ccbb2f3584cd48a5d09d4ea7f28fea | [log] [tgz] |
|---|---|---|
| author | Roman Grigoriadi <roman.grigoriadi@oracle.com> | Mon Jun 03 10:41:33 2019 +0200 |
| committer | Roman Grigoriadi <bravehorsie@gmail.com> | Thu Jun 06 15:47:52 2019 +0200 |
| tree | 8b50ea9f460465979876d3082a1b013011551bd5 | |
| parent | d795087658d0d3ed01cdd7a8cce06ae4ccf9a3bc [diff] |
Replace java.util.Stack with Deque / ArrayDeque, refine error message. 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);