how jackson deserilize is-prefix value without add JsonProperty annotation?
For some reason, I cannot modify the data class source code. (e.g. the pojo class is from in a third party dependency, so that I cannot modify that)
JsonProperty causes conflicting/ambiguous property name definitions on additional method
When I use JsonProperty
, it causes the issue
java.lang.ClassCastException: class java.util.LinkedHashMap cannot be cast to
data class Response<T>( val result: T ) class MyResult : HashMap<String, Any?>() { // custom methods } fun<T> getDocument( uri: String ): Response<T> = webClient.get() .uri(uri).retrieve() .bodyToMono(object : ParameterizedTypeReference<Response<T>>() {}) .block() When I invoke it getDocument<MyResult>(“uri”) it throws the following: java.lang.ClassCastException: class java.util.LinkedHashMap cannot be cast to class com.test.model.MyResult (java.util.LinkedHashMap is in module java.base of […]