Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

SQLAlchemy Users to JSON code snippet

@app.route('/results/')
def results():
    data = Table.query.all()
    result = [d.__dict__ for d in data]
    return jsonify(result=result)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #SQLAlchemy #Users #JSON #code #snippet
ADD COMMENT
Topic
Name
8+1 =