docs: 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)