Module ImportFrom alias alias alias FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return Str orelse Return Str decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Num Return Call AttributeLoad NameLoad attr IfExp CompareIs Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad keyword Call NameLoad decorator_list Assign NameStore NameLoad
N/A flask current_app json request __pad N/A N/A strdata N/A N/A N/A  Pads `strdata` with a Request's callback argument, if specified, or does
    nothing.
     N/A N/A N/A N/A request args get callback N/A N/A N/A %s(%s); N/A N/A N/A N/A request args get callback strdata N/A N/A strdata N/A __mimetype N/A N/A N/A N/A N/A N/A N/A N/A request args get callback N/A N/A application/javascript N/A N/A application/json N/A __dumps N/A N/A N/A args kwargs N/A N/A  Serializes `args` and `kwargs` as JSON. Supports serializing an array
    as the top-level object, if it is the only argument.
     N/A indent None N/A N/A N/A N/A N/A current_app config get JSONIFY_PRETTYPRINT_REGULAR False N/A N/A request is_xhr N/A N/A indent 2 N/A N/A N/A json dumps N/A N/A N/A len args 1 N/A args N/A 0 N/A dict args kwargs indent indent N/A jsonpify N/A N/A N/A args kwargs N/A N/A Creates a :class:`~flask.Response` with the JSON or JSON-P
    representation of the given arguments with an `application/json`
    or `application/javascript` mimetype, respectively.  The arguments
    to this function are the same as to the :class:`dict` constructor,
    but also accept an array. If a `callback` is specified in the
    request arguments, the response is JSON-Padded.

    Example usage::

        @app.route('/_get_current_user')
        def get_current_user():
            return jsonify(username=g.user.username,
                           email=g.user.email,
                           id=g.user.id)


    GET /_get_current_user:
    This will send a JSON response like this to the browser::

        {
            "username": "admin",
            "email": "admin@localhost",
            "id": 42
        }

    or, if a callback is specified,

    GET /_get_current_user?callback=displayUsers

    Will result in a JSON response like this to the browser::
        displayUsers({
            "username": "admin",
            "email": "admin@localhost",
            "id": 42
        });

    This requires Python 2.6 or an installed version of simplejson.  For
    security reasons only objects are supported toplevel.  For more
    information about this, have a look at :ref:`json-security`.

    .. versionadded:: 0.2

     N/A N/A N/A current_app response_class N/A __pad N/A __dumps args kwargs mimetype N/A __mimetype N/A N/A jsonify jsonpify