0

在 ASP.Net Core 3.0 中使用默认 JSON 序列化序列化 (string, obj) 的字典时,发生以下错误:

无法将“system.szarrayenumerator”类型的对象转换为“system.collections.idictionaryenumerator”类型。

4

1 回答 1

2

能够通过 nuget 包切换回 Newtonsoft 进行序列化来解决问题:Microsoft.AspNetCore.Mvc.NewtonsoftJson: 3.0.0

于 2019-11-25T05:54:03.797 回答