from typing import OrderedDict
import json


def load(infile):
    """Return a dictionary of settings from the given file."""
    with open(infile, 'rb') as file:
        settings = OrderedDict(json.load(file))
    return settings