<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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")