需引入Newtonsoft.Json JObject result= (JObject)JsonConvert.DeserializeObject(str); int number = Convert.ToInt32(result["AccessControllerEvent"]["serialNo"]);