<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_json(path: str, encoding: str = "utf-8") -> HistogramBase: """Load histogram from a JSON file."""

    with open(path, "r", encoding=encoding) as f:
        text = f.read()
        return parse_json(text)