How to parse that JSON:
{
\"foo\": {
\"bar\": {
\"baz\": \"Hello\"
},
\"qux\": \"World\"
}
}
Into t
I have found, that this feature is not implemented in Jackson yet, see issue.
As a workaround, method below can be added into Foo class:
@JsonProperty("foo")
public void setFoo(JsonNode jsonNode) {
this.qux = jsonNode.get("qux").getTextValue();
this.baz = jsonNode.get("bar").get("baz").getTextValue();
}