import json


def json_from_file(filename):
    """Load the given path to file and return json object

    :filename: path
    :returns: json

    """
    with open(filename) as data_file:
        data=json.load(data_file)
    return data