def get_json_data(context):
    """Retrieve JSON data."""
    json_data = context.response.json()
    assert json_data is not None, \
        "JSON response from the previous request does not exist"
    return json_data