{![]()
"UserName": "liyongdong",
"UserName": "liyongdong",
"access_token": "30efe613c8b2ecb18cec35453b2e",
"Expires_in": "1446055200",
"Company": "",
"Station": "财务副总",
"UserGUID": "E01F8480-A992-41B0-8390-EA1C44EE",
"RealName": "李永东",
"MangerName": "李永东",
"RoleName": "项目公司管理员",
"AppModule": "修改已签约客户,添加客户,编辑客户",
"project": [![]()
{![]()
"BUGUIDLV1": "EF91AA52-11DA-4BB9-9E01-3657B448EE85",
"ProjGUID": "91DB795A-877D-4BBA-9099-4DAC2DD45F3D",
"BUGUID": "CCB723C0-C7D0-4412-9A65-A9832F346B45",
"ProjName": "呼和浩特广场",
"ProjAreaName": "北区-呼和浩特广场",
"SaleGroupId": "7",
"SaleName": "销售2组",
"IsLeader": "0"
}
],
"error": "0",
"msg": "ok"
}
//解析类javabean
package com.duowan.tool;
import java.util.List;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
public class Example {
@JsonProperty("UserName")//属性设置
private String username;
@JsonProperty("access_token")
private String accessToken;
@JsonProperty("Expires_in")
private String expiresIn;
@JsonProperty("Company")
private String company;
@JsonProperty("Station")
private String station;
@JsonProperty("UserGUID")
private String userguid;
@JsonProperty("RealName")
private String realname;
@JsonProperty("MangerName")
private String mangername;
@JsonProperty("RoleName")
private String rolename;
@JsonProperty("AppModule")
private String appmodule;
private List<Project> project;
private String error;
private String msg;
public void setUsername(String username) {
this.username = username;
}
public String getUsername() {
return username;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
public String getAccessToken() {
return accessToken;
}
public void setExpiresIn(String expiresIn) {
this.expiresIn = expiresIn;
}
public String getExpiresIn() {
return expiresIn;
}
public void setCompany(String company) {
this.company = company;
}
public String getCompany() {
return company;
}
public void setStation(String station) {
this.station = station;
}
public String getStation() {
return station;
}
public void setUserguid(String userguid) {
this.userguid = userguid;
}
public String getUserguid() {
return userguid;
}
public void setRealname(String realname) {
this.realname = realname;
}
public String getRealname() {
return realname;
}
public void setMangername(String mangername) {
this.mangername = mangername;
}
public String getMangername() {
return mangername;
}
public void setRolename(String rolename) {
this.rolename = rolename;
}
public String getRolename() {
return rolename;
}
public void setAppmodule(String appmodule) {
this.appmodule = appmodule;
}
public String getAppmodule() {
return appmodule;
}
public void setProject(List<Project> project) {
this.project = project;
}
public List<Project> getProject() {
return project;
}
public void setError(String error) {
this.error = error;
}
public String getError() {
return error;
}
public void setMsg(String msg) {
this.msg = msg;
}
public String getMsg() {
return msg;
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
package com.duowan.tool;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
public class Project {
@JsonProperty("BUGUIDLV1")
private String buguidlv1;
@JsonProperty("ProjGUID")
private String projguid;
@JsonProperty("BUGUID")
private String buguid;
@JsonProperty("ProjName")
private String projname;
@JsonProperty("ProjAreaName")
private String projareaname;
@JsonProperty("SaleGroupId")
private String salegroupid;
@JsonProperty("SaleName")
private String salename;
@JsonProperty("IsLeader")
private String isleader;
public void setBuguidlv1(String buguidlv1) {
this.buguidlv1 = buguidlv1;
}
public String getBuguidlv1() {
return buguidlv1;
}
public void setProjguid(String projguid) {
this.projguid = projguid;
}
public String getProjguid() {
return projguid;
}
public void setBuguid(String buguid) {
this.buguid = buguid;
}
public String getBuguid() {
return buguid;
}
public void setProjname(String projname) {
this.projname = projname;
}
public String getProjname() {
return projname;
}
public void setProjareaname(String projareaname) {
this.projareaname = projareaname;
}
public String getProjareaname() {
return projareaname;
}
public void setSalegroupid(String salegroupid) {
this.salegroupid = salegroupid;
}
public String getSalegroupid() {
return salegroupid;
}
public void setSalename(String salename) {
this.salename = salename;
}
public String getSalename() {
return salename;
}
public void setIsleader(String isleader) {
this.isleader = isleader;
}
public String getIsleader() {
return isleader;
}
}