JsonException: Max allowed object depth reached while trying to export from type System.Single
在进行类转json字符串时,报错JsonException: Max allowed object depth reached while trying to export from type System.Single。
ok,实际上是类的属性中有json不能识别的数据类型,我这里就脑残的float。去除掉之后就ok了。
(备注:用的是LitJson)
那一般什么类型是允许的呢?
我在JsonData类中找到了答案。
- public JsonData(bool boolean);
- public JsonData(double number);
- public JsonData(int number);
- public JsonData(long number);
- public JsonData(object obj);
- public JsonData(string str);
JsonException: Max allowed object depth reached while trying to export from type System.Single相关推荐
- 【Netcore】This can either be due to a cycle or if the object depth is larger than the maximum allowed
报错信息 An unhandled exception occurred while processing the request. JsonException: A possible object ...
- Hbase RegionServer 启动失败 Time difference of xxx ms max allowed of 30000ms
Hbase RegionServer 启动报错 异常如下: STOPPED: Unhandled: org.apache.hadoop.hbase.ClockOutOfSyncException: S ...
- Redis问题:ERR max number of clients reached
redis高并发下,可能有些连接没有释放,导致连接数耗尽,会提示 ERR max number of clients reached 这个时候通过命令查看客户端使用连接数 [root@home-ser ...
- Frame size of 257 MB larger than max allowed 100 MB
ActiveMQ有时会报类似Frame size of 257 MB larger than max allowed 100 MB的错误,意思是单条消息超过了预设的最大值,在配置文件中 <tra ...
- 解决Redis 连接池报错:ERR max number of clients reached
前言 redis maxclients 是redis server的重要配置,它决定了客户端的最大连接数量,最大客户端连接数量.由于redis不区分连接是客户端连接还是内部打开文件或者和slave连接 ...
- The type 'System.Object' is defined in an assembly that is not referenced
记录一个错误,报 The type 'System.Object' is defined in an assembly that is not referenced,[System.Runtime] ...
- C# Predefined type 'System.Object' is not defined or imported
在写C#的时候,有时候会出现 Severity Code Description Project File Line Suppression State Error CS0518 Predefined ...
- Flutter 转 null safe时报错: The argument type ‘Object‘ can‘t be assigned to the parameter type XXX
在将Flutter工程转为 null safe的时候,遇到下面的错误: error: The argument type 'Object' can't be assigned to the param ...
- python object的实例是什么_python中的type和object详解
这篇博客主要描述Python的新风格对象(new-style objects),如下: 和分别是什么? 用户自定义的类和实例之间是怎么联系的?它们和内置类型又是怎么联系的? 什么是元类(metacla ...
最新文章
- 科学家王海峰:从百度十篇论文入选ACL 2019说起
- Elasticsearch使用
- Effective C++ -- 零散知识点整理
- js 拼接html 表格,js合并table单元格(拼table的时候并不知道具体几行几列)
- SQL SERVER 数据库邮件配置
- int linux 原子操作_linux c++编程之多线程:原子操作如何解决线程冲突
- python中 1.34e3_Python快速编程入门——第2章 Python基础语法
- 测视力距离5米还是3米_装B冷知识 | 小孔镜为什么可以提高视力?
- topjui/easyui 表格分页简单实例
- python zemax_python的用途和优点
- 【Unity】打包WebGL项目遇到的问题及解决记录
- 现代企业管理的12法宝(zt)
- 整理准备使用wireshark、拉米在线解密PDM5生成密钥网址
- python opencv图片拼接、特征点匹配
- ffmpeg API FR NET
- Web开发中的常见应用
- PUSH消息是什么?
- 【蓝桥杯练习】100的阶乘有多少个约数?
- 使用离散元法DEM进行转鼓内颗粒动力学研究
- RS485/Modbus 水表接入 ThingsCloud 实现远程抄表
热门文章
- OpenGL polygonsmooth多边形平滑的实例
- C语言size_t和size_type比较
- c语言for循环说课稿,C语言FOR循环说课稿.docx
- Disconf介绍,源码下载,环境准备,安装,disconf-web使用和配置介绍,项目中进行配置,项目案例运行
- Azkaban实战,Command类型单一job示例,任务中执行外部shell脚本,Command类型多job工作flow,HDFS操作任务,MapReduce任务,HIVE任务
- hdfs haadmin使用,DataNode动态上下线,NameNode状态切换管理,数据块的balance,HA下hdfs-api变化(来自学习资料)
- Quartz + spring 定时任务常见错误总结
- SQL 聚合函数一定要跟group by以及NULL的关系的案例精讲
- Mysql数据唯一约束与唯一索引案例总结及踩坑记(含NULL值与唯一约束唯一索引的搭配使用)
- java springcloud版b2b2c社交电商spring cloud分布式微服务-docker-feign(四)