Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Add import to jsonify example #700

merged 1 commit into from

3 participants


I am new to flask and it took me half an hour to figure out why jsonify doesn't work for me. So answer has pointed out solution for me: . I thought that this import line in example can help out newcomers, like me, in a future.


You might argue that the example is already incomplete because it doesn't contain code to create an app. I'm +0 on this.


But you already have an app and add non-working example. Maybe you knew this import already, I didn't since it is not mentioned anywhere.


This clarifies things. Thanks!

@kennethreitz kennethreitz merged commit 84958e5 into mitsuhiko:master

1 check failed

Details default The Travis build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 25, 2013
  1. @SpOOnman
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  flask/
2  flask/
@@ -141,6 +141,8 @@ def jsonify(*args, **kwargs):
to this function are the same as to the :class:`dict` constructor.
Example usage::
+ from flask import jsonify
def get_current_user():
Something went wrong with that request. Please try again.