title: Deserialize a JSON array as Dictionary with JSON.Net
body: <p>I've one part of my JSON that looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/oPSfy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oPSfy.jpg" alt="enter image description here"></a></p>
  
  <p>Like you can see, in the JSON, the temperature "dictionary", is in fact a list of list of 2 element.</p>
  
  <p>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.</p>
  
  <p>But in my C# object, I would like to have this as a dictionary, with timestamp as the key, and temperature as the value.</p>
  
  <p>Is this possible?</p>
  
  <pre><code>//note, I've a custom converter that converts from long to DateTime     
  public Dictionary&lt;DateTime, double&gt; Temperature { get; set; }
  </code></pre>
  
  <p>and deserializing like this:</p>
  
  <pre><code>JsonConvert.DeserializeObject&lt;List&lt;WeatherPredictionDay&gt;&gt;(content, new EpochConverter());
  </code></pre>