Closed xiaoshuang-lu closed 7 years ago
This is because getIPV4Address
and setIPV4Address
would map to ipv4Address
, which is different from field name of ipV4Address
(capitalization differs in V
).
If you want that property to be renamed as ipv4
please move @JsonProperty
to getter or setter method; there is no point in adding it to private field that is not visible anyway.
All right. Thank you, @cowtowncoder.
expected output: {"serviceName":"serviceName","ipv4":"localhost"} actual output: {"ipv4Address":"localhost","serviceName":"serviceName","ipv4":"localhost"}
affects version: 2.8.5