title: Flask-RESTful return does not need to be json.dumps()
body: <p>I am trying to switch over my REST server from just Flask to Flask-RESTful. </p>
  
  <p>What I am confused with is, I am using retrofit to read the data on the client, but on the first instance I need to use json.dumps(data) and the second I just need to return.</p>
  
  <p>Can anyone explain this? In both bits of code data is a list</p>
  
  <p><strong>First example just Flask</strong></p>
  
  <pre><code>data = []
  for row in cur.fetchall():
      out = {
          "list_id": row[0],
          "list_name": row[1]
      }
      data.append(out)
  cur.close()
  return json.dumps(data)
  </code></pre>
  
  <p><strong>Second example Flask-RESTful</strong></p>
  
  <pre><code>class UserLists(Resource):
  def get(self, user_id):
      results = Lists.query.filter(Lists.user_id == user_id).all()
      data = [{'list_id': list_item.id, 'list_name': list_item.name} for list_item in results]
      return data
  </code></pre>