from typing import OrderedDict
import json


def load_json_ordered(filename: str) -> OrderedDict:
    """Loads json file as an ordered dict.
    
    Args:
        filename: Path to json file to be loaded.
        
    Returns:
        OrderedDict: odict
            OrderedDict containing data from json file.
    """
    with open(filename) as f:
        odict = json.load(f, object_pairs_hook=OrderedDict)
    return odict