def from_json(self, json_str):
    content = json.loads(json_str)
    if isinstance(content, dict):
        self.content = _dt_dict(content)
    else:
        self.content = _dt_list(content)
def from_json(self, json_str):
    content = json.loads(json_str)
    if isinstance(content, dict):
        self.content = _dt_dict(content)
    else:
        self.content = _dt_list(content)