add json serializer to sqlalchemy class object