在下面的 json 响应中找到...
{
"personalDetails": {
"Name ": " Taeyeon",
"Date Of Birth ": " 03/09/1989",
"Zodiac ": " Pisces"
},
"education": {
"High School ": " Jeonju Art High school ",
"University ": " -"
}
}
我的班级在这里
public class Biography
{
public personalDetails personalDetails { get; set; }
public education education { get; set; }
public work work { get; set; }
public personal personal { get; set; }
}
public class personalDetails
{
public string Name { get; set; }
public string DateBirth { get; set; }
public string Zodiac { get; set; }
}
public class education
{
public string HighSchool { get; set; }
public string University { get; set; }
}
然后我把代码:
Biography dataSet = JsonConvert.DeserializeObject<Biography>(e.Result);
它不起作用,因为 Arttribute 有空间。我该怎么办?