title: python json dumps puts object into object on row_to_json return
body: <p>I am running a Postgres query in python which returns me an array of JSON objects.</p>
  
  <pre><code>    db = SQLDB('postgres://postgres:*****@localhost:5433/postgres', migrate=False)
      q = ("SELECT row_to_json(t) FROM (SELECT * FROM fn_drivetime_eu_grid_" + request.get_vars.country + "_coord(" + request.get_vars.x + ", " + request.get_vars.y + ", " + request.get_vars.sec + ")) t;")
      mySQL = db.executesql(q)
      return json.dumps(mySQL)
  </code></pre>
  
  <p>The problem is that the objects are inside objects. Dawg!</p>
  
  <p>Not a big problem, but I would like to know whether there is a more elegant solution for this.</p>
  
  <p><a href="https://i.stack.imgur.com/mhlPf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mhlPf.png" alt="enter image description here"></a></p>