jsonb-api
jsonb-api copied to clipboard
Jakarta JSON Binding
Please add information to the JSON-B Spec / JavaDocs explicitly declaring how to handle `null` in `JsonbAdapter` implementations: * MUST a `JsonbAdapter` implementation expect to receive `null`? * MAY a...
Partial fix of #70 (JavaDocs only) Unfortunately I could only fix the JavaDocs, as there is just boilerplate for the actual spec.
If I have a JSON-B data class like this: ```java @JsonbPropertyOrder({"????"}) public class JsonbObject { @JsonbProperty("identity") long id; @JsonbProperty("desc") String description; @JsonbProperty("thecost") double cost; @JsonbProperty("tstamp") Date timeStamp; ``` From reading...
Currently section 3.16 of the JSON-B 1.0 spec states: > ## 3.16 Big numbers > JSON Binding implementation MUST serialize/deserialize numbers that express greater magnitude or precision than an IEEE...
The classes [`java.util.EnumSet`](https://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html) and [`java.util.EnumMap`](https://docs.oracle.com/javase/8/docs/api/java/util/EnumMap.html) are part of the JDK and could be supported by JSON-B. EnumSet should certainly be supported because JSON-B already support collections of POJOs, and EnumSet...
[This line of JsonbSerializer's javadoc's](https://github.com/eclipse-ee4j/jsonb-api/blob/b29bc1edff86b66f2b57476b394e5da19f47ac40/api/src/main/java/javax/json/bind/serializer/JsonbSerializer.java#L40) exemplifies its use by calling the method `SerializationContext.serialize(T object, JsonGenerator generator)` , that is "_intended to serialize inside JSON_ARRAYs_"1, which is not the case. The...
There are cases when deserialization is getting complex. For example, if the value of one property decides about how to proceed with other attributes, as it could happen with polymorphic...
It should be possible to configure default values for `JsonbConfig` instances using MP/Jakarta config. For example, if an application initialized a default JSON-B configuration like this: ```jav new JsonbConfig() ```...
Assume you have a Java class which has an Enum. What happens if a JSON input contains a value for that Enum which is not a valid Enum value? The...
In the JSON-B 1.0 specification, section 3.5, it supports ALL the native date types of Java like java.util.date, java.time.LocalDate and java.time.LocalTime. HOWEVER, in the [JsonConfig](https://github.com/javaee/jsonb-spec/blob/1.0/api/src/main/java/javax/json/bind/JsonbConfig.java), it ONLY provide a single...