title: How to convert list of list (of lists) to json array in python?
body: <p>I'm having trouble finding how to convert python list of of elements like this:</p>
  <pre><code>[[[&quot;thisid&quot;, 24024502], [&quot;points&quot;, [[[&quot;lat&quot;, 37.8732041], [&quot;lon&quot;, -122.2562601]], [[&quot;lat&quot;, 37.8729153], [&quot;lon&quot;, -122.2561566]]]], [&quot;name&quot;, &quot;Latimer Hall&quot;]]
  </code></pre>
  <p>to json array of elements like that:</p>
  <pre><code>{&quot;thisid&quot;: 24024502, &quot;points&quot;: [{&quot;lat&quot;: 37.8732041, &quot;lon&quot;: -122.2562601}, {&quot;lat&quot;: 37.8729153, &quot;lon&quot;: -122.2561566}], &quot;name&quot;: &quot;Latimer Hall&quot;}
  </code></pre>
  <p>Basically, I'm trying to convert list of lists with inner structure to a corresponding list in json.</p>
  <p>Plain <code>json.dumps(mylist)</code> just returns the original list (I guess, it's because it's a valid json object as well...)</p>
  <p>Many thanks for any suggestions you may have!</p>