abc.json文件结构:
[{“name”: John, “age”: 18}, {“name”: Joe, “age”: 20}, {“name”: Bob, “age”: 80}, {“name”: Green, “age”: 30}]
File jsonFile = ResourceUtils.getFile(“classpath:abc.json”);
https://segmentfault.com/a/1190000011212806
String json = FileUtils.readFileToString(jsonFile);
JSONArray jsonArray = JSON.parseArray(json);
for (Object obj : jsonArray) {
JSONObject jobj = (JSONObject) obj;
String iso = jobj.getString("***");