docs: def parse_json(text: str, encoding: str = "utf-8") -> HistogramBase:
      """Create histogram from a JSON string."""
      data = json.loads(text, encoding=encoding)
      return create_from_dict(data, format_name="JSON")