![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
json
admin_Object
这个作者很懒,什么都没留下…
展开
-
mysql 5.7 返回json数据 中文乱码问题
mysql 5.7 返回json数据 中文乱码原创 2022-06-14 17:35:35 · 382 阅读 · 0 评论 -
Cannot deserialize instance of `java.util.ArrayList<com.entity.Test>` out of VALUE_STRING token
Cannot deserialize instance of `java.util.ArrayList<com.XXX.XXX>` out of VALUE_STRING token原创 2022-01-13 17:47:26 · 3579 阅读 · 0 评论 -
json串反转义(消除反斜杠)
json字符串的值中包含反斜杠{"image":"xxx.jpg","sku":"A301","name":"IPhone11\"5G","status":"有货"}其实它在字符串里面是这样显示的{\"image\":\"xxx.jpg\",\"sku\":\"A301\",\"name\":\"IPhone11\\\"5G\",\"status\":\"有货\"}执行JSON.parseObject("{"image":"xxx.jpg","sku":"A301","nam原创 2021-03-25 15:46:33 · 6855 阅读 · 1 评论 -
读取JSON并生成Java类文件编译器JSON GEN
http://jsongen.byingtondesign.com/使用步骤:1.复制 json 字符串到编译器里;2.定义类名3.点击生成 Java 类文件Json 示例:{"string_value":"joe","number_value":1,"array_value":[{"name":"fred","address":{"city":"toledo","state":"ohio"}}]} 生成的 Java 文件如下:public class .原创 2020-06-01 09:17:28 · 441 阅读 · 0 评论 -
获取json字符串数组里面某个属性的值
String jsonStr = "[{"key": 1568607847117,"imgType": "S","count": 1,"level": 2}, {"key": 1568607914096,"imgType": "C","count": 0,"level": 4}]";如何拿到 level 的值呢?JSONObject.parseArray(x).getJSONOb...原创 2019-09-16 17:51:22 · 5873 阅读 · 0 评论