你试过这个吗?BadGuy
是一个字符串,所以你应该这样定义它.
public class First { [JsonProperty("FirstBool")] public int FirstBool { get; set; } [JsonProperty("aString")] public string aString { get; set; } } public class ClsResult { [JsonProperty("First")] public First First { get; set; } [JsonProperty("BadGuy")] public string BadGuy { get; set; } } public static class Program { public static void Main() { string json = GetJson(); ClsResult result = JsonConvert.DeserializeObject(myJSON); Console.WriteLine("Bad Guy == " + result.BadGuy); } }