java - Best way to deserialize dynamic nested json -
i have nested json looks like
{ profiles : { "mike": "123", "jack": "456" } }
the profile json can dynamic ie dont know how many profiles/name there in it. request. 2 or 3 or x. in java tried
company.java
public class company { @jsonproperty("profiles") profiles profile; }
profiles.java
public class profiles{ jsonobject info; }
this wrong. right way nested json?
public class company { @jsonproperty("profiles") map<string, integer> profiles; }
Comments
Post a Comment