title: How to correctly use Flask's jsonify() to return json?
body: <p>I'm having a little trouble using the flask.jsonify function to output a formatted json response from a dictionary input, as described in <a href="https://stackoverflow.com/questions/16908943/flask-display-json-in-a-neat-way">here.</a></p>
  
  <p>My code is seems to be returning the Response object, instead of the formatted json object that I want.</p>
  
  <p>I have</p>
  
  <pre><code>@app.route('/rparser', methods=['GET', 'POST'])
  def rparser():
      form = ParserForm(request.form)
      if request.method=='POST':
          result = jsonify(**dict)
          return render_template('rparser.html', form=form, result=result)
      else:
          return render_template('rparser.html', form=form)
  </code></pre>
  
  <p>where dict is a dictionary object returned from calling a function.</p>
  
  <p>And in my template, I have:</p>
  
  <pre><code>(form up here)
  
  {% if result %}
      {{ result }}
  {% endif %}
  </code></pre>
  
  <p>This is displaying:</p>
  
  <blockquote>
    <p>Response 135 bytes [200 OK]</p>
  </blockquote>
  
  <p>How would I make this return the json representation that I am looking for?</p>