在进行类转json字符串时,报错JsonException: Max allowed object depth reached while trying to export from type System.Single。

ok,实际上是类的属性中有json不能识别的数据类型,我这里就脑残的float。去除掉之后就ok了。

(备注:用的是LitJson)

那一般什么类型是允许的呢?

我在JsonData类中找到了答案。

[csharp] view plaincopy

  1. public JsonData(bool boolean);
  2. public JsonData(double number);
  3. public JsonData(int number);
  4. public JsonData(long number);
  5. public JsonData(object obj);
  6. public JsonData(string str);

JsonException: Max allowed object depth reached while trying to export from type System.Single相关推荐

  1. 【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 ...

  2. Hbase RegionServer 启动失败 Time difference of xxx ms max allowed of 30000ms

    Hbase RegionServer 启动报错 异常如下: STOPPED: Unhandled: org.apache.hadoop.hbase.ClockOutOfSyncException: S ...

  3. Redis问题:ERR max number of clients reached

    redis高并发下,可能有些连接没有释放,导致连接数耗尽,会提示 ERR max number of clients reached 这个时候通过命令查看客户端使用连接数 [root@home-ser ...

  4. Frame size of 257 MB larger than max allowed 100 MB

    ActiveMQ有时会报类似Frame size of 257 MB larger than max allowed 100 MB的错误,意思是单条消息超过了预设的最大值,在配置文件中 <tra ...

  5. 解决Redis 连接池报错:ERR max number of clients reached

    前言 redis maxclients 是redis server的重要配置,它决定了客户端的最大连接数量,最大客户端连接数量.由于redis不区分连接是客户端连接还是内部打开文件或者和slave连接 ...

  6. 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] ...

  7. C# Predefined type 'System.Object' is not defined or imported

    在写C#的时候,有时候会出现 Severity Code Description Project File Line Suppression State Error CS0518 Predefined ...

  8. 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 ...

  9. python object的实例是什么_python中的type和object详解

    这篇博客主要描述Python的新风格对象(new-style objects),如下: 和分别是什么? 用户自定义的类和实例之间是怎么联系的?它们和内置类型又是怎么联系的? 什么是元类(metacla ...

最新文章

  1. 科学家王海峰:从百度十篇论文入选ACL 2019说起
  2. Elasticsearch使用
  3. Effective C++ -- 零散知识点整理
  4. js 拼接html 表格,js合并table单元格(拼table的时候并不知道具体几行几列)
  5. SQL SERVER 数据库邮件配置
  6. int linux 原子操作_linux c++编程之多线程:原子操作如何解决线程冲突
  7. python中 1.34e3_Python快速编程入门——第2章 Python基础语法
  8. 测视力距离5米还是3米_装B冷知识 | 小孔镜为什么可以提高视力?
  9. topjui/easyui 表格分页简单实例
  10. python zemax_python的用途和优点
  11. 【Unity】打包WebGL项目遇到的问题及解决记录
  12. 现代企业管理的12法宝(zt)
  13. 整理准备使用wireshark、拉米在线解密PDM5生成密钥网址
  14. python opencv图片拼接、特征点匹配
  15. ffmpeg API FR NET
  16. Web开发中的常见应用
  17. PUSH消息是什么?
  18. 【蓝桥杯练习】100的阶乘有多少个约数?
  19. 使用离散元法DEM进行转鼓内颗粒动力学研究
  20. RS485/Modbus 水表接入 ThingsCloud 实现远程抄表

热门文章

  1. OpenGL polygonsmooth多边形平滑的实例
  2. C语言size_t和size_type比较
  3. c语言for循环说课稿,C语言FOR循环说课稿.docx
  4. Disconf介绍,源码下载,环境准备,安装,disconf-web使用和配置介绍,项目中进行配置,项目案例运行
  5. Azkaban实战,Command类型单一job示例,任务中执行外部shell脚本,Command类型多job工作flow,HDFS操作任务,MapReduce任务,HIVE任务
  6. hdfs haadmin使用,DataNode动态上下线,NameNode状态切换管理,数据块的balance,HA下hdfs-api变化(来自学习资料)
  7. Quartz + spring 定时任务常见错误总结
  8. SQL 聚合函数一定要跟group by以及NULL的关系的案例精讲
  9. Mysql数据唯一约束与唯一索引案例总结及踩坑记(含NULL值与唯一约束唯一索引的搭配使用)
  10. java springcloud版b2b2c社交电商spring cloud分布式微服务-docker-feign(四)