import json


def json_from_file(file_path):
    """
    Read a file and convert it into a json object
    :param file_path: path of file
    :return: A json object
    """
    file = open(file_path, "r")
    return json.loads(file.read())