title: Converting Python Dictionary to JSON Array
body: <p>I currently have a Python Dictionary that looks something like this:</p>
  
  <pre><code>OrderedDict([('2017-07-24', 149.7619), ('2017-07-25', 150.4019), ('2017-07-26', 151.1109), ...
  </code></pre>
  
  <p>that I am converting to JSON like so:</p>
  
  <pre><code>one_yr = json.dumps(priceDict)
  </code></pre>
  
  <p>Currently I am adding values to the dictionary from an SQL query by looping through it like so:</p>
  
  <pre><code>for i in query:
      date = i[0] 
      close = i[1]
      priceDict[date] = close
  </code></pre>
  
  <p>The problem is that this returns a JSON object, that i then have to convert to a JSON array. </p>
  
  <p>I am wondering if I can just convert my Python Dictionary to a JSON array directly? Thanks. </p>