title: Pandas Dataframe conversion to JSON
body: <p>I have a <code>Pandas</code> <code>Dataframe</code> or two rows with data that I'd like to pass as a <code>JSON</code> array.</p>
  
  <p>The <code>JSON</code> needs to be formatted as follow:</p>
  
  <pre><code>[{
      "Date": "2017-02-03",
      "Text": "Sample Text1"
  },
  {
      "Date": "2015-02-04",
      "Text": "Sample Text2"
  }]
  </code></pre>
  
  <p>I tried using <code>df.to_json(orient='index')</code>, but the output is not quite right as it seems to be using the <code>index</code> values as <code>keys</code></p>
  
  <pre><code>{"0":{"Date":"2017-02-03","Text""Sample Text1"},"1":{"Date":"2017-02-04","Text""Sample Text2"}}
  </code></pre>