import json
from typing import OrderedDict


def read_json_file(path_):
    """
    Reads the given JSON file into an ordered dictionary.

    Args:
        path_ (str): path to JSON file.

    Returns:
        OrderedDict
    """
    with open(path_, "r") as f:
        return json.loads(f.read(), object_pairs_hook=OrderedDict)