commit | f8b9c00e7faba2a4a50af2899553c0fd96327d31 | [log] [tgz] |
---|---|---|
author | Andrew Guibert <andy.guibert@gmail.com> | Mon Jul 06 10:56:00 2020 -0500 |
committer | Andrew Guibert <andy.guibert@gmail.com> | Mon Jul 06 23:54:42 2020 -0500 |
tree | 0469ce5de8d98c738eb9b0ca492138bdce1ddf0a | |
parent | 09989552a436597fe353e0cc5e9d9da6a5a029ad [diff] |
Revert "Normalize ZoneId objects before serializing them" Undo this bug fix for 1.X because the 1.0 TCK requires the opposite behavior currently. This reverts commit edbcff85962ef43ac0293ba7fef154843f46ffb7.
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);
Something not working right? Have an idea for an enhancement? Get in touch with the Yasson community in the following ways:
[jsonb-api]
and [yasson]