在asp.net core 3.0 中,如果直接在Controller中返回 Jobject 类型,会抛出如下错误:
The collection type 'Newtonsoft.Json.Linq.JObject' is not supported.
System.NotSupportedException: The collection type...
https://blog.csdn.net/zhouyingge1104/article/details/83307637
C#项目中使用NewtonSoft.json,报错提示:
Can not add Newtonsoft.Json.Linq.JValue to Newtonsoft.Json.Linq.JObject.
代码如下:
//{"code":2...
在asp.net core 3.0 中,如果直接在controller中返回 jobject 类型,会抛出如下错误:
the collection type 'newtonsoft.json.linq.jobject' is not supported.
system.notsupportedexception: the colle...