I've one part of my JSON that looks like this:
Like you can see, in the JSON, the temperature "dictionary", is in fact a list of list of 2 element.
The first element is a timestamp, the second the temperature. Not sure why the provider of the service did it like this, but I don't really have the choice, I must do with it.
But in my C# object, I would like to have this as a dictionary, with timestamp as the key, and temperature as the value.
Is this possible?
//note, I've a custom converter that converts from long to DateTime
public Dictionary<DateTime, double> Temperature { get; set; }
and deserializing like this:
JsonConvert.DeserializeObject<List<WeatherPredictionDay>>(content, new EpochConverter());
