List list = new ArrayList();
Map<String,String> map = new HashMap<>();
map.put("name","szy");
map.put("num",2);
list.add(map);
String inventoryResultStr = JSON.toJSON(list).toString();
var strJson1 ='${inventoryResultStr}';
var verficationPeopleMap=JSON.parse(strJson1);
List inventoryResultList = JSONObject.parseArray(inventoryResult);
for(Integer i=0;i<inventoryResultList.size();i++){
JSONObject jsonObject = (JSONObject) inventoryResultList.get(i);
String name =jsonObject.getString("name");
}