def METHOD_NAME(result, doc, status_code):
    """
    Generate a HTTP response as a JSON object for a success scenario.
    :param any result: Top-level data to be encoded as JSON
    :param string doc: Documentation to be included as part of the JSON response
    :param int status_code: HTTP status code to be used for the response
    """
    return make_response(jsonify(status='ok', doc=doc, result=result), status_code)