从jason格式数据中取出数据,
JSONObject fromObject = JSONObject.fromObject(jsonResult);
String string2 = fromObject.getString("code");//jason中是字符串
String birthday = fromObject.getJSONObject("data").getString("birthday");
//jason中去除的是jason字符串,然后再从里面去除所需要的数据。
JSONObject fromObject = JSONObject.fromObject(jsonResult);
String string2 = fromObject.getString("code");//jason中是字符串
String birthday = fromObject.getJSONObject("data").getString("birthday");
//jason中去除的是jason字符串,然后再从里面去除所需要的数据。