import json


def get_json_toastr_message(id, value, color):
    """

    :param id: id of toastr widget
    :param value: value to be displayed in popup
    :param color: text color of toastr message
    :return: json as specified by OUI for Toasts widget
    """
    sensordata_json = {
        "id": id,
        "toastrMessage": value,
        "toastrColor": color

    }
    return json.dumps(sensordata_json)