多层json解析实体类样例:
主类:
package JsonPOJO;
import java.util.List;
public class JsonObject {
private List<Nodes> nodes ;
private List<Links> links ;
public void setNodes(List<Nodes> nodes){
this.nodes = nodes;
}
public List<Nodes> getNodes(){
return this.nodes;
}
public void setLinks(List<Links> links){
this.links = links;
}
public List<Links> getLinks(){
return this.links;
}
}
Nodes类:
package JsonPOJO;
public class Nodes {
private int id;
private String name;
private int type;
private boolean innode;
private Properties properties;
private class Properties {
private String regno;
private String esdate;
private String regcap;
private String industryphy_desc;