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