title: How do I print a JSON object received from Flask?
body: <p>My Flask webapp returns jsonify(data) and seems to be working properly (logs correctly).</p>
  
  <p>The HTML page has:</p>
  
  <pre><code> $.getJSON("http://127.0.0.1:5000/").done(function (data) {
    console.log(data);
    });
  </code></pre>
  
  <p>and nothing is printed. I've tried different approaches and the closest I got was something like [object object].</p>
  
  <p>The Python code is something like:</p>
  
  <pre><code>@app.route("/")  
  def run():  
      rows = []
      # code to populate rows with values from a db
      data = {'rows' : rows}
      print json.dumps(data)
      return jsonify(data)
  </code></pre>
  
  <p>json.dumps() prints {"rows": [[[1.0, 2.0]]]}</p>