Closed ppamorim closed 9 years ago
Google for "issue tracker", and its purpose. It is not a general question support forum.
Github has a label "Question", and yes it's a question and this should be documented. It's the basic for a library so used...
Solved! More educated people ended up helping me, unlike many here...
On first model:
@JsonProperty("property")
@JsonDeserialize(as=ArrayList.class, contentAs=ModelTwo.class)
private List<ModelTwo> modelsTwo;
On second model:
@JsonCreator
public ModelTwo(
@JsonProperty("id") int id,
@JsonProperty("name") String name) {
this.id = id;
this.name = name;
}
Ah. I was not aware of such a type. I hope there is a way to remove this, because this is not a good forum for asking questions. I am glad you found a solution to your problem.
I need deserialize a string(json) to a arraylist inside a model. Anyone can help me?