If there's a Enum type column in the sqlalchemy object, which can not be json serialized, so extract it's name and value in to_primitive function.
If there's a Enum type column in the sqlalchemy object, which can not be json serialized, so extract it's name and value in to_primitive function.