fastjson2 icon indicating copy to clipboard operation
fastjson2 copied to clipboard

[QUESTION] 请问在fastjson2中,有禁止循环引用的功能吗,就是去掉 $ref 的意思

Open 156370005 opened this issue 9 months ago • 3 comments

fastjson1中,可以通过全局设置 JSON.DEFAULT_GENERATE_FEATURE |= SerializerFeature.DisableCircularReferenceDetect.getMask(); 或使用 JSON.toJSONString(obj, SerializerFeature.DisableCircularReferenceDetect); 来禁止循环引用

但在fastjson2中,找不到类似的功能。 在使用fastjson v1兼容版本中,也达不到fastjson1的效果。

谢谢!

156370005 avatar May 21 '24 07:05 156370005