Sqlalchemy Jsonify Javascript Interview Question