import json


def read_restaurants(intext: str) -> dict:
    """
    Parse the list of restaurants from the restaurants file.

    Args:
        intext(str): The text loaded from the restaurants file.
    """
    indata = json.loads(intext)
    data = dict()
    for entry in indata["restaurants"]:
        data[entry["identifier"]] = entry
    return data