且构网

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

JSON反序列化对象HTTPWebResponse

更新时间:2022-02-12 08:35:37

您正尝试将JSON反序列化为错误的类.

You are trying to deserialize your JSON into the wrong class.

更改此行:

var splashInfo = JsonConvert.DeserializeObject<Record>(result);

对此:

var splashInfo = JsonConvert.DeserializeObject<RootObject>(result);

提琴: https://dotnetfiddle.net/2xR7hO