Closed Dudeplayz closed 1 year ago
This problem is caused by a difference between the name that jackson
analogizes from the getter name generated by Kotlin
and the actual field name.
A workaround option for these issues will be released in 2.16. Please see the issue below for details. https://github.com/FasterXML/jackson-module-kotlin/issues/630
This issue is closed as a duplicate.
Describe the bug Trying to serialize a property annotated with
JsonProperty
, which starts with a lower case letter, directly followed by a upper case letter, results in a doubled incorrect serialization. E.g.@field:JsonProperty("E_Test") eTest
is serialized asE_Test
andetest
. Only tested in Kotlin with kotlin-module.To Reproduce
Result:
Expected result
Versions Kotlin: 1.9.0 Jackson-module-kotlin: 2.15.2 Jackson-databind: 2.15.2
Additional context
results in
notable, because the property order is changed and
etest1
is at the end.