JSON解析关联类型发生死循环 There is a cycle in the hierarchy!
来源:互联网 发布:linux 程序运行权限 编辑:程序博客网 时间:2024/04/30 15:37
解决办法是忽略掉关联类型的数据,使用jsonConfig进行配置,代码如下:
JsonConfig jsonConfig = new JsonConfig(); //建立配置文件
jsonConfig.setIgnoreDefaultExcludes(false); //设置默认忽略
jsonConfig.setExcludes(new String[]{"glLocation"});
JSONArray jsonArray = JSONArray.fromObject(list,jsonConfig); //加载配置文件
0 0
- JSON解析关联类型发生死循环 There is a cycle in the hierarchy!
- JSONException: There is a cycle in the hierarchy!解决Json死循环问题
- JSON 转换异常 死循环 There is a cycle in the hierarchy
- 解决json,There is a cycle in the hierarchy,只循环到某一个关联层
- json-lib There is a cycle in the hierarchy!
- JSON There is a cycle in the hierarchy异常
- Json解析时出现net.sf.json.JSONException: There is a cycle in the hierarchy!42
- There is a cycle in the hierarchy
- There is a cycle in the hierarchy !!!
- There is a cycle in the hierarchy
- There is a cycle in the hierarchy
- There is a cycle in the hierarchy!
- json解析过程中遇到net.sf.json.JSONException: There is a cycle in the hierarchy!问题
- jQuery调用JSON时,net.sf.json.JSONException: There is a cycle in the hierarchy
- jQuery调用JSON时,net.sf.json.JSONException: There is a cycle in the hierarchy
- json中net.sf.json.JSONException: There is a cycle in the hierarchy!的解决
- jQuery调用JSON时,net.sf.json.JSONException: There is a cycle in the hierarchy
- jQuery调用JSON时,net.sf.json.JSONException: There is a cycle in the hierarchy!
- c++ iterator
- **C++和JAVA中的多态区别以及与此相关的重载、覆盖和隐藏*
- 汇编中的通用数据传送类指令
- Jvm启动参数整理
- Android学习笔记(3)——按钮点击注册事件的四种写法
- JSON解析关联类型发生死循环 There is a cycle in the hierarchy!
- Node.js一些乱七八糟的知识
- Android编程之Bitmap图片压缩大小
- 【redis】dict
- C++ list
- 大数据处理系列之(一)Java线程池使用
- [OI回忆录系列之二]从中考到接触竞赛之前
- 2012ACM国际决赛试题 Fibonacci Words算法设计与分析
- Android Activity学习笔记——Activity的启动和创建