import json


def log_decode(log_data):
    """ decodes log data from json string and returns python dict / list of the data
    """
    data = json.loads(log_data.data)
    timestamp = log_data.timestamp
    return (data, timestamp)