json在数据库内部储存的格式为:
{a:“a”,“list”:[{“pojo”:{“name”:1}},{“pojo”:{“name”:2}}]}
public List<POJO> method(String json){
JSONObject jsonObject=JSON.parseObject(json);
JSONArray arr=jsonObject.getJSONArray("list") ;//list为json中的list元素
List<POJO> pojoList= JSONObject.parseArray(arr.toJSONString(), POJO.class);
}