def deserialize(self, body):
        if isinstance(body, bytes):
            return json.loads(body.decode('utf-8'))
        return json.loads(body)
The low-level deserialization.
dataset/ETHPy150Open tgonzales/mingus/mingus/serializers.py/JSONSerializer.deserialize