x = db.session.query(User).filter_by(username=request.form['username'],
    password=request.form['password']).first()
serialized = [get_user_serialized(item) for item in x]
res = jsonify(res=serialized)
return res
Python Sql Alchemy - How to jsonify a class object result from a database query