import json


def read_from_json(name: str = "locations_data.txt") -> dict:
    """Read data from json file.

    json file's structure is:
    {year:
        {country:
            {"lat", "long", "place":
                {place: "lat", "long", "name":
                    {movie:
                        [lat, long]
                    }
                }
            }
        }
    }
    :param name: name of the json file
    :return: a dictionary from json
    """
    with open(name) as json_file:
        return json.load(json_file)