当前位置:网站首页>In fastjason data type, there is a problem of $ref: "$.list[0]" when parsing jsonobject
In fastjason data type, there is a problem of $ref: "$.list[0]" when parsing jsonobject
2022-07-21 20:06:00 【Cold moon and snow】
One 、 Preface
It is often used in actual development fastjson Related data structure in . Today, it is re parsed by iterator loop 、 assemble fastJson after , Console output traversal found some more in the array “$ref” This is a mess of data
Two 、 reason
JSONObject Reference detection is on by default , Repeated references to objects are $ref Instead of . Because of my addJson Inside keyt It is the same and repeated , Therefore, after re traversing the assembly, there will be alternative data in it .
3、 ... and 、 Solution
entity.setChangeAft(JSONObject.toJSONString(changeAfter, SerializerFeature.DisableCircularReferenceDetect));
When adding to an entity class , hold JSON Turn off reference detection
边栏推荐
- Download Yotube videos using clip converter website
- Real time tracking of user management operations
- (三)JDBCTemplate
- ctfshow MengXIn misc1
- 单体项目-瑞吉外卖
- MySQL DQL (data query language) - common functions
- aws的postgreSQL是去掉了hba吗?
- Quanzhi a40i development board hardware specification - 100% domestic + industrial level scheme (Part 2)
- "New product release" B2B connector version NXP i.MX 8m Mini industrial core board
- [untitled]
猜你喜欢
"New product release" B2B connector version NXP i.MX 8m Mini industrial core board
My understanding of UI automated testing
iwemeta:史玉柱的黄金酱酒:贴牌的代工厂都被关停了,谁在生产?
微信公众号开发接入,利用微信公众平台申请测试号进行本地开发
The JSON tool converts objects to JSON format strings
实时跟踪用户管理操作
Docker installation mysql8 in CentOS 8
大厂面经分享,速来
flutter自定义form表单,封装form表单组件
京东爆款架构师成长手册首发,架构师光环你也值得拥有
随机推荐
MySQL DCL (data control language)
Matlab natural spline function (spline, non matlab built-in function)
Metauniverse iwemeta: the new cover of time magazine, metauniverse will change everything
接口测试常用工具及测试方法
2022.7.18DAY609
iwemeta:史玉柱的黄金酱酒:贴牌的代工厂都被关停了,谁在生产?
微信公众号开发接入,利用微信公众平台申请测试号进行本地开发
2022.7.19DAY610
Written test compulsory training day 19
How Jenkins sends e-mail? The automation veteran will teach you
3D数学之三角公式
MySQL之DQL(数据查询语言)-常见函数
C——编译预处理
2022DASCTF MAY web
FL Studio 20.9水果编曲软件中文汉化补丁包
STM32 - ADC reads the photosensitive sensor, controls the LED light, and the watchdog interrupts
Three paradigms of database design in MySQL
Unity ECS 测试Demo
Corn表达式用法
《构建之法》笔记---第六章 敏捷流程