当成json数组,JSONObject,直接进行处理。
例如前台json数组类型为:
String str="{'index':'XXX','is_update':'N','username':'王','id_card':'XXXXXXXX','phone':'2333333'}";
JSONObject jo=new JSONObject(str);
jo.getString(username); //王
例如前台json数组类型为:
String str="{'index':'XXX','is_update':'N','username':'王','id_card':'XXXXXXXX','phone':'2333333'}";
JSONObject jo=new JSONObject(str);
jo.getString(username); //王