import json


def writeJson(file_name, data):
    """
    Writes given dict data to given file_name as json.

    Args:
        file_name (string): Path to write data to.

        data (dict): dict to write to given file_name.

    Returns:
        (string): full path where json file is.
    """
    with open(file_name, 'w') as open_file:
        json.dump(data, open_file, indent=4)

    return file_name