title: How to insert a list of json string into an array dict?
body: <p>I have an array (list of json string) and I want to move the whole array into a dict array.
  I know how to change 1 of this json string into dict. But Is it possible to change the whole list?
  my list as below:</p>
  
  <pre><code>a[0] = {"name": "May", "age": "99", "gender": "Female"}
  a[1] = {"name": "Ray", "age": "88", "gender": "male"}
  a[2] = {"name": "Tim", "age": "23", "gender": "male"}
  </code></pre>
  
  <p>When I want to change a[0] into dict, I use the code as below:</p>
  
  <pre><code>res = json.loads(a[0])
  </code></pre>
  
  <p>But when I want to change all of it into a array dict, it happen as below:</p>
  
  <pre><code>res[0] = json.loads(a[0])
  </code></pre>
  
  <p>error as below:</p>
  
  <pre><code>Traceback (most recent call last):
    File "td.py", line 44, in &lt;module&gt;
      res[x] = json.loads(a[x])
    File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
      return _default_decoder.decode(s)
    File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/lib64/python2.7/json/decoder.py", line 382, in raw_decode
      obj, end = self.scan_once(s, idx)
  ValueError: Expecting object: line 1 column 2063 (char 2062)
  </code></pre>