Skip to content
Myr

Add import to jsonify example.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tomasz Kalkosiński · committed by Tomasz Kalkosiński · parent 4366bb3 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:flask/json.py+2 added
139 unmodified lines
140 the given arguments with an `application/json` mimetype. The arguments141 to this function are the same as to the :class:`dict` constructor.142143 Example usage::144 145 from flask import jsonify146147 @app.route('/_get_current_user')148 def get_current_user():149 return jsonify(username=g.user.username,
20 unmodified lines