Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
傅伟强-富德
/
test1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3c49f249
authored
Aug 02, 2018
by
傅伟强-富德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 分单规则同步解析返回数据
1 parent
43d4e11b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletions
分单规则同步解析返回数据
分单规则同步解析返回数据
View file @
3c49f24
-- "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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment