NewtonsoftJsonJsonSerializationExceptionCannot deserialize the current JSON object eg namevalue into type SystemCollectionsGenericList1DiskMonitoringModelsNotification+Notice because the type requires
This error message indicates that there is an issue with deserializing a JSON object into a list of objects. Specifically, the error is caused by the fact that the deserialized type requires a JSON array, while the JSON being parsed is not an array.
To fix this error, you can either change the JSON to a JSON array, or change the deserialized type to a normal .NET type that can be deserialized from a JSON object. Additionally, you can add a JsonObjectAttribute to force the deserialization of the JSON object
原文地址: http://www.cveoy.top/t/topic/huDE 著作权归作者所有。请勿转载和采集!