Open cutz opened 1 month ago
probably doable yeah
I don't have a feel for how big of an undertaking this would be. If this seems like something that would be a good starter task, and someone is willing to point me in the right direction, I'd be willing to take a stab at a solution.
createSpecific
for serialization / deserialization with a specific customised serialised to handle the shapeThe other solution would be detecting it in the compilation time and and setting a custom serializer/deserializer interface ShapeDeserializer
/ interface ShapeSerializer
+ add implementation which would use createSpecific
and some logic to do the convertion
that would likely be more efficient yes
Feature description
I have a boolean property that I would like to serialize/deserialize to json as a numeric value
0
or1
. I believe this typically could be done by annotating the property with@JsonFormat(shape=JsonFormat.Shape.Number)
. As documented micronaut doesn't not support theshape
property forJsonFormat
and attempts to use it result in the following error:Are there any plans to support this?