?? Boolean Workexpmark = true;
Hairdresser working experience JSON array parsing
Org.json.JSONObject jsonobject = new Org.json.JSONObject (
Workexperience);
String array = jsonobject.getstring ("workexperence");
Org.json.JSONArray Jsonarray = new Org.json.JSONArray (array);
int ja = jsonarray.length ();
String workexperienceids= "";
for (int i = 0; i < ja; i++) {
Workexperience Workexperiencebean = new Workexperience ();
Org.json.JSONObject object = Jsonarray.getjsonobject (i);
Workexperiencebean.setcontent (object.getstring ("content"));
Workexperiencebean.setdelstatus (FALSE);
Workexperiencebean.setendtime (object.getstring ("EndTime"));
Workexperiencebean.setstarttime (object.getstring ("StartTime"));
Workexperiencebean.setupdatetime (UpdateTime);
Join the Work Experience
int workexperienceid=workexperienceservice.addworkexperience (Workexperiencebean);
if (workexperienceid> 0) {
Workexperienceids=workexperienceids+workexperienceid+ ";";
} else {
Workexpmark = false;
Map.put ("Success", 0);
}
}
Web Service JSON Array parsing