the results queried with sqlalchemy contain other entity class objects and are stored in the sqlalchemy-related container. How to convert to json?
the results queried with sqlalchemy contain other entity class objects and are stored in the sqlalchemy-related container. How to convert to json?
this article is worth reading carefully-- oracle-based flask project (V)-- report download , in which there is a paragraph
that describes how to" json sqlalchemy data ". My approach is to generate a dictionary to store database objects, and finally return json.dumps (this dictionary)
Previous: Do all the students who develop with angular2 framework know how to rxjs?
Next: Nginx can't change ip.