import json
from typing import OrderedDict


def load(file_path, ordered=False):
    """Load a JSON file from disk.

    Args:
    - file_path (FilePath): The fully qualified file path.

    Returns:
    - dict: The JSON data
    """

    fh = open(file_path, mode='r')
    data = None
    if ordered:
        data = json.load(fh, object_pairs_hook=OrderedDict)
    else:
        data = json.load(fh)
    fh.close()
    return data