fastjson常使用操作

1.将json字符串转成对应的实体对象
eg: ModifyPriceVO modifyPriceVO = JSON.parseObject(applicationDO.getObject(),ModifyPriceVO.class);
2.JSON类之toJSONString()方法,实现json对象转化为json字符串
3.JsonObject json = new JsonObject();
json.getArray(“key”);
json.getInteger(“key”);

发布了57 篇原创文章 · 获赞 0 · 访问量 4560

猜你喜欢

转载自blog.csdn.net/Arry_Coding/article/details/102519749