import json


def file_to_json(file_name):
    """
    Read a file and convert it into json structure in memory
    :param file_name: file to read
    :return: json structure
    """
    with open(file_name, 'r') as file:
        data = file.read().replace('\n', '')
    return json.loads(data)