jsonify a SQLAlchemy result set in Flask [duplicate]
This question already has an answer here: How to serialize SqlAlchemy result to JSON? 20 answers I'm trying to jsonify a SQLAlchemy result set in Flask/Python. The Flask mailing list suggested the following method http://librelist.com/browser//flask/2011/2/16/jsonify-sqlalchemy-pagination-collection-result/#04a0754b63387f87e59dda564bde426e : return jsonify(json_list = qryresult) However I'm getting the following error back: TypeError: <flaskext.sqlalchemy.BaseQuery object at 0x102c2df90> is not JSON serializable What am I overlooking here? I have found this question: How to serialize