title: JSON a list Flask
body: <p>I want to send this list as JSON in the Flask framework.</p>
  
  <p>I fetched something from my DB and I have this here as my list:</p>
  
  <pre><code>[('GG',)]
  </code></pre>
  
  <p>How do I send it to JSON?</p>
  
  <pre><code>@app.route('/gt', methods=['GET'])
  def gt():
      logged_in_email = session['auth']
      if not logged_in_email:
          return "Nothing"
      else:
          r = todo.retrieve_todo(logged_in_email)
          print(r)
          print(type(r))
          return r
  </code></pre>
  
  <p>This doesn't work, I tried <code>json.loads</code> but that expects a string and I have a list?</p>