def api_json_format(timestamp, temperature):
    """
    Imitate API json format.

    Parameters
    ----------
    timestamp : str 
        Event UTC timestamp.
    temperature : float 
        Event temperature value.

    Returns
    -------
    json : dict 
        API json format.

    """

    json = {
        'targetName': 'local_file',
        'data': {
            'temperature': {
                'value':      temperature,
                'updateTime': timestamp,
            }
        }
    }

    return json