import json


def write_json(file_path, py_content):
    """Write a list or dict to a JSON file

    Args:
        file_path (string): Absolute path of the file. Example:"C:/Users/Noctsol/Documents/somefile.json"
        py_content ([type]): [description]

    Returns:
        bool: Just here so that something is returned.
    """
    with open(file_path, 'w') as file:
        json.dump(py_content, file)

    return True