(cls, value: bytes)
| 104 | |
| 105 | @classmethod |
| 106 | def decode(cls, value: bytes) -> Any: |
| 107 | # explicitly decode from UTF-8 bytes first, as otherwise |
| 108 | # json.loads() will first have to detect the correct UTF- |
| 109 | # encoding used. |
| 110 | return json.loads(value.decode(), object_hook=object_hook) |
| 111 | |
| 112 | |
| 113 | class PickleCoder(Coder): |