def merge_json(data1, data2):
    """merge lists in two json data together

    Args:
        data1 (json or None): first json data
        data2 (json): 2nd json data

    Returns:
        TYPE: merged data
    """
    if not data1:
        return data2
    else:
        for i in data2['list']:
            data1['list'][i] = data2['list'][i]
        return data1