Commit 3c49f249 by 傅伟强-富德

Update 分单规则同步解析返回数据

1 parent 43d4e11b
Showing with 22 additions and 1 deletions
-- "a/\345\210\206\345\215\225\350\247\204\345\210\231\345\220\214\346\255\245\350\247\243\346\236\220\350\277\224\345\233\236\346\225\260\346\215\256"
JSONArray dateArray = new JSONArray();
JSONArray dateArray = new JSONArray();
JSONObject json = new JSONObject();
String policyNos=test();
json = JSONObject.fromObject(policyNos);
String arr=json.getString("policyNos");
dateArray=JSONArray.fromObject(arr);
for (Object object : dateArray)
{
json=(JSONObject) object;
System.out.println(object);
}
Iterator keys = json.keys();
//然后通过一个循环取出所有的key值
while (keys.hasNext()){
String key = String.valueOf(keys.next());
System.out.println(key);
//最后就可以通过刚刚得到的key值去解析后面的json了
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!