When implementing services using SimpleIO that return data returning the result of a query through SQLAlchemy in which there is at least one field that is a UUID, if you want to return a JSON you get into trouble because it’s not a type that is JSON-serializable:
TypeError: UUID('fea602c9-bc4d-432a-ad57-74d88416c04b') is not JSON serializable
I have tried using the Unicode() type conversion but I just get a different error:
AttributeError: 'UUID' object has no attribute 'decode'
Maybe adding a UUID type converter that returns obj.hex or casts it to str? Example from Stack Overflow here.