title: how to parse 3 level nested array using newtonsoft json
body: <p>I have the following json which is in geojson format, and Id like to be able to parse this into a nested list in c#:</p>
  
  <p><code>public IList&lt;IList&lt;IList&lt;double&gt;&gt;&gt; Coordinates { get; set; }</code></p>
  
  <pre><code>"coordinates": [
      [
          [-3.213338431720785, 55.940382588499197],
          [-3.213340490487523, 55.940381867350276],
          [-3.213340490487523, 55.940381867350276],
          [-3.213814166228732, 55.940215021175085],
          [-3.21413960035129, 55.940100842843712]
      ]
  ]
  </code></pre>
  
  <p>I have tried the following but I get an exception:</p>
  
  <pre><code>    var node = jsonProperties["geometry"]["coordinates"].Values();
      var coordinates = node.Select(x=&gt;x.Value&lt;List&lt;double&gt;&gt;());
  </code></pre>
  
  <p>Exception detail:</p>
  
  <blockquote>
    <p>Cannot cast Newtonsoft.Json.Linq.JArray to
    Newtonsoft.Json.Linq.JToken.</p>
  </blockquote>