Python | How to create complex dictionary
<p>I want to create a data structure that will be parse as a JSON object. The out put must look like this and this should be a dynamic data structure.</p>

<pre><code>{"data": [{"type": "locale", "lat": -34.43778387240597, "lon": 150.04799169921876},
{"type": "poi", "lat": -34.96615974838191, "lon": 149.89967626953126},
{"type": "locale", "lat": -34.72271328279892, "lon": 150.46547216796876},
{"type": "poi", "lat": -34.67303411621243, "lon": 149.96559423828126}]}
</code></pre>

<p>I'm struggling in the middle of implementing this data structure so expecting some good ideas.</p>

<p>Thanks </p>
