How to serialize\deserialize a property where the property name is dependent on the data
问题 I'm trying to get the following json (see below) deserialized (using newtonsoft json serializer) and the problem is the variable named "2010-12" it is obviously dependent on the data returned - it represents a month and next month the value will change to "2010-01". Any ideas on how i could handle this with the following class? [JsonObject(MemberSerialization.OptIn)] public class Crimes { [JsonProperty()] public Month Month { get; set; } } Example JSON instance: { "commentary": null, "crimes"