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

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -