Is there any way to serialize specific properties ...
# serialization
j
Is there any way to serialize specific properties as unquoted strings? My problem is I have JSON that contains unquoted decimal numbers with significant precision as a source. I can easily deserialize them with
isLenient = true
and a custom serializer parsing from string to BigDecimal. The problem is, if I want to serialize it back, I can't produce the same Json, because I have to encode as String and now I have quoted decimal numbers. Unfortunately changing the source is out of my hands since it's an external spec.