TypeError: Object of type ResultProxy is not JSON serializable: result in sqlalchemy query?
Simply error says result
is not a dictionary. To solve it:
jsonify({'result': [dict(row) for row in result]})
It will convert each row to a dictionary.