Is it possible to use the .NET DataContractJSONSerializer to deserialize a JSON file formatted differently than it would usually serialize?
问题 I have a JSON file formatted like so, which is generated by a tool that I cannot edit: { "thing_name1": { "property1": 0, "property2": "sure" }, "thing_name2": { "property1": 34, "property2": "absolutely" } } The class I'm trying to deserialize to is as such: [DataContract] public class Thing { [DataMember] public String ThingName; [DataMember(Name="property1")] public int Property1; [DataMember(Name="property2")] public String Property2; } I need to put the values of "thing_name1" and "thing