title: python create multiple json objects
body: <p>I am trying to build a list in Python as below. I want to call this function multiple times and build a json array, when i try with <code>json.dumps for p in range (0,10)</code> it adds extra <code>[]</code> for each json object</p>
  
  <pre><code>def buildlist():
     objects_list = []
     d = collections.OrderedDict()
     d['batteryLevel'] = random.randint(0, 100)
     d['firmwareVersion'] = "2016-04-16-ENGG"
     d['macId'] = MACprettyprint(randomMAC())
     d['name'] = "".join([random.choice(string.digits+string.letters) for i in xrange(7)])
     d['rssi'] = random.randint(0, 100) * -1
     d['status'] = random.choice([OPEN, LOCKED])
     objects_list.append(d)
     return objects_list
  </code></pre>