且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法反序列化当前JSON对象(例如{"name":"value"})

更新时间:2021-09-15 21:59:44

您不能使用JsonConvert.DeserializeObject.

请尝试以下代码:

JObject jsonResponse = JObject.Parse(jsonString);
JObject objResponse = (JObject)jsonResponse["logInResult"];
Dictionary<string, JArray> _Data = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<string, JArray>>(objResponse.ToString());

希望这会对您有所帮助.

Hope this will help you.