import json


def get_json_result(status):
    """returns a json status based on the status given

    Parameters:
    status (boolean): boolean indicating a good status or bad status

    Returns:
    json: {'status': 'ok'} for good (True), {'status': 'ko'} for bad (False)

   """
    return json.dumps({'status': 'ok'}) if status else json.dumps(
        {'status': 'ko'})