public static void main(String[] args) {
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
Map<String, Object> param = new HashMap<String, Object>();
for (int i = 0; i <= 10; i++) {
param = new HashMap<String, Object>();
param.put("key", String.valueOf(i) + "data");
list.add(param);
}
String json = JSONArray.toJSONString(list);
System.out.println(json);
JSONArray data = JSONObject.parseArray(json);
List<Object> albumList = (List<Object>) data;
for (Object o : albumList) {
Map<String, Object> map = new ObjectMapper().convertValue(o, Map.class);
System.out.println(String.valueOf(map.get("key")));
}
}