String httpPost4Instream = http.httpPost4Instream
JSONObject jsonbject = JSONObject.fromObject(httpPost4Instream);
JSONArray jsonArray = jsonbject.getJSONArray("stores");
String string = jsonArray.getString(0);
JSONObject fromObject = JSONObject.fromObject(string);
String startDate = fromObject.getString("startDate");
String endDate = fromObject.getString("endDate");
param.setFromDate(Long.valueOf(startDate).longValue());
param.setToDate(Long.valueOf(endDate).longValue());
JSONObject获取JSONArray转JSONObject获取某个属性值
最新推荐文章于 2024-06-22 20:25:10 发布