jsonb-api
jsonb-api copied to clipboard
Jakarta JSON Binding
We've got a user question in Johnzon whether setting PropertyOrderStrategy should end up sorting Map and Set fields as well. My personal interpretation from reading the spec is that it...
Custom Serialization currently doesn't seem to trigger for anything other than the initial object passed into "toJson", should this be the case? I want to serialize every instance of X...
One of my coworkers recently informed me of what they believed was a JSON-B bug in Yasson where a class annotated with @JsonbPropertyOrder(PropertyOrderStrategy.LEXICOGRAPHICAL) did not observe a lexicographical ordering for...
JSON-B spec document declared @JsonbSerialized and @JsonbDeserialized annotations. These annotations and defined as @JsonbTypeSerializer and @JsonbTypeDeserializer in the API. Spec document has to be updated.
It is commonly necessary to test if two Java objects representing JSON data are equal to one another. For example, consider the following class: ```java public class MyData { public...
The spec neither javadoc describes what is the parser 'looking at' when passed to user deserializer and if it is scoped in any way, and curent implementations vary in their...
Quite a few JSON formats represent times as the number of seconds since 1970. It would be useful to be able to bind these to a java.time.Instant. JSON-B offers [JsonbDateFormat.TIME_IN_MILLIS](http://json-b.net/docs/api/java.json.bind/javax/json/bind/annotation/JsonbDateFormat.html#TIME_IN_MILLIS),...
Behavior of passing input `"null"` in `Jsonb.fromJson("null", T)` is unspecified. Section 3.6 defines to return (type) `null` for unspecified output type, but this is only very limited case. I propose...
I have an Employee class that produces the following JSON: ```javascript { "audit": { "createdDate": "2019-03-17T21:07:57.019", "updatedDate": "2019-03-17T21:07:57.019" }, "id": 1, "version": 1, "firstName": "Mike", "lastName": "Norman", "salary": 5000 }...
in [JSONB specification document](https://jcp.org/en/jsr/detail?id=367) section 3.13, it is required that properties from parent classes are serialized first. `@JsonbPropertyOrder` annotation is declared on a TYPE. Should it include properties from parent...