fastjson的使用

1.jsonArray的字符串转List对象数组

            JSONObject jsonObject=JSONObject.parseObject(dbObjectColumnVo.getTaName());
            JSONArray arr = jsonObject.getJSONArray("columnsDataList");
            //将array数组转换成字符串
            String json =JSONObject.toJSONString(arr);
            //把字符串转换成集合
            List<DbObjectColumnVo> dbObjectColumnList = JSONObject.parseArray(json, DbObjectColumnVo.class);
原文地址:https://www.cnblogs.com/linhongwenBlog/p/14346355.html