def jsonify(data):
    indent = None if flask.request.is_xhr else 2

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

    return flask.current_app.response_class(jsonified_safe,
            mimetype='application/json')
Displays usage information, available command line params.
dataset/ETHPy150Open vim-awesome/vim-awesome/web/api/api_util.py/jsonify--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/sample_util.py/print_options