String s = "{\n" +
"\t\"akey\": {\n" +
"\t\t\"NewValue\": 2,\n" +
"\t\t\"OldValue\": 1,\n" +
"\t\t\"IncrValue\": 1\n" +
"\t},\n" +
"\t\"bkey\": {\n" +
"\t\t\"NewValue\": 4,\n" +
"\t\t\"OldValue\": 2,\n" +
"\t\t\"IncrValue\": 2\n" +
"\t}\n" +
"}";
Map map = JSONObject.parseObject(s, HashMap.class);
Set<String> set = map.keySet();
for (String key : set) {
System.out.println(key);
JSONObject jsonObject = (JSONObject) map.get(key);
String newValue = jsonObject.getString("NewValue");
String oldValue = j
12-24
1248

10-29
3827

01-03