Python Json data
<p>I have looked all over the place trying to find what is probably trivial but I just cant wrap my head around how to do this. I have a web service that wants data to look like this to update some objects: ( this is encoded into the POST body of the web service call)</p>

<pre><code>{
    "name":zone_name,
    "service":{
            "name":"service_name",
             "dns_address_record_list":[{
                        "vip_order":"record",
                        "static":"state",
                    }
                        {
                        "vip_order":"record",
                        "static":"state",}
                  ]
              }
          }
</code></pre>

<p>I am trying to build methods so that I can add to the <code>dns_address_record_list[]</code> programmatically based on a user form. How can I generate the above data dynamically and add to the <code>dns_address_record_list"[]</code>? I have tried all kinds of things but nothing works.</p>

<p>Any pointers a greatly appreciated.</p>
