Permalink
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (7 sloc) 600 Bytes

{% raw %}

Same as flask.jsonify(), which means it creates a Response with the JSON representation of the given arguments with an application/json mimetype. The arguments to this function are the same as to the dict constructor.

In addition if callback argument is provided in the request then it will return a response with the JSONP representation.

Demo

Visit the following URL to check it in action: gae-init.appspot.com/api/v1/user/?callback=foo

{% endraw %}