1. 程式人生 > >FastJson序列化

FastJson序列化

json序列化 tin sonar code 序列化 dex utils sta art

String post = HttpClientUtils.httpPost(martinUrl + "index/status",new HashMap<>());
            JSONObject object = JSON.parseObject(post);
            String jsonString = object.getJSONArray("data").toJSONString();
            List<MartinResVo> list = JSON.parseArray(jsonString, MartinResVo.class);
            list.forEach(x->{
                x.setChineseDesc(IndexNameEnum.getDescByAlias(x.getIndexAlias()));
            });
            res.setData(list);

FastJson序列化