the "how to serialize a sqlalchemy model" has many solutions. many of which change as parts and pieces get changed by flask.
jsonify a SQLAlchemy result set in Flask
i've settled on using py-flask-jsontools. made a copy of the repository and integrated several fixes from various forks. the orginal author seems mia.
https://github.com/slippers/py-flask-jsontools
here is the test for sqlalchemy i made to explore serializing to json with and without flask context.
https://github.com/slippers/py-flask-jsontools/blob/master/tests/sqlalchemy-test.py
? how do I serialize sqlalchemy model to json without calling
json.dumps( "some query object", cls=DynamicJSONEncoder)
especially when there is request context and flask knows what serializer class to use.