I have json with a field that contains two different types.
"fields":[{"value":"ZIELONE OKO"},{"value":{"@nil":"true"}}]
I have a problem with deserialization. My class with model contains:
private String value;
And I just need to translate {"@nil": "true"} to null. Now I get the error message:
The JsonDeserializer StringTypeAdapter failed to deserialized json object {"@nil":"true"} given the type class java.lang.String
source
share