Deserialize JSON not working with JSON.NET
问题 I have a problem with the following JSON when deserializing using JSON.NET. { "?xml": { "@version": "1.0", "@encoding": "utf-8" }, "Persons": { "Person": [{ "@Id": "1", "@Name": "John", "@Surname": "Smith" }, { "@Id": "2", "@Name": "John", "@Surname": "Smith", "Skills": { "Skill": [{ "@Id": "1", "@Name": "Developer" }, { "@Id": "2", "@Name": "Tester" }] } }] } } I'm using the following classes: public class RootObject { public Xml xml { get; set; } public Persons Persons { get; set; } }