(data)
return flask.current_app.response_class(jsonified_safe,
            mimetype='application/json')
Returns a flask.Response of data, JSON-stringified.

    This is basically Flask's jsonify
    (https://github.com/mitsuhiko/flask/blob/master/flask/json.py), but plugs
    an XSS hole and knows how to encode Mongo ObjectIds and datetimes.
Returns a flask.Response of data, JSON-stringified.
Returns a flask . Response of data JSON - stringified .
def jsonify(data):
    """Returns a flask.Response of data, JSON-stringified.

    This is basically Flask's jsonify
    (https://github.com/mitsuhiko/flask/blob/master/flask/json.py), but plugs
    an XSS hole and knows how to encode Mongo ObjectIds and datetimes.
    """
    indent = None if flask.request.is_xhr else 2

    jsonified = json.dumps(data, indent=indent, cls=ApiJsonEncoder)
    jsonified_safe = jsonified.replace('</', '<\\/')

    return flask.current_app.response_class(jsonified_safe,
            mimetype='application/json')
def jsonify ( data ) : indent = None if flask . request . is_xhr else 2 jsonified = json . dumps ( data , indent = indent , cls = ApiJsonEncoder ) jsonified_safe = jsonified . replace ( '</' , '<\\/' ) return flask . current_app . response_class ( jsonified_safe , mimetype = 'application/json' )