def serialize(self, data, content_type):
        try:
            return json.dumps(data)
        except __HOLE__:
            pass
        return json.dumps(to_primitive(data))
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/network/quantum/client.py/JSONSerializer.serialize