From the tutorial I had the impression that this should work (simplified example):
public class Foo {
private String bar;
public String getBar() {
The Foo class needs an instance property of type Qux
for automatic deserialization to work. The way the Foo class is currently defined, there is no destination property to inject the qux
JSON object values.
public class Foo {
private String bar;
public String getBar() {
return bar;
}
public void setBar(String bar) {
this.bar = bar;
}
// additional property
private Qux qux;
public Qux getQux() {
return qux;
}
public void setQux(Qux value) {
qux = value;
}
public static class Qux {
private String foobar;
public String getFoobar() {
return foobar;
}
public void setFoobar(String foobar) {
this.foobar = foobar;
}
}
}