def decode_json(data: str) -> Do: json = yield parse_json(data) yield decode.match(json)
def decode_json_type(data: str, tpe: Type[A]) -> Do: json = yield parse_json(data) yield decode_json_type_json(json, tpe)
def decode_json(data: str) -> Generator: json = yield parse_json(data) yield decode(json)