jakartaee / jsonb-api

Jakarta JSON Binding
https://eclipse-ee4j.github.io/jsonb-api/
Other
79 stars 39 forks source link

@ConstructorProperties should be supported #115

Open JohT opened 5 years ago

JohT commented 5 years ago

Implementations of the specification should support the Annotation „@ConstructorProperties“, when there is no @JsonCreator annotation. -) It is build into Java SE and does not introduce additional dependencies. -) Convention over code: Serialization of immutable value objects without any (others) annotations. -) It is supported by Jackson -) It works well with project Lombok

Some links: https://docs.oracle.com/javase/7/docs/api/java/beans/ConstructorProperties.html

https://liviutudor.com/2017/09/15/little-known-yet-useful-java-annotation-constructorproperties/#sthash.JxsFuxEO.UD4JsQnZ.dpbs

https://github.com/fasterxml/jackson-databind/issues/905

rmannibucau commented 5 years ago

+1, johnzon supports it as well