Difference Between `json.dumps()` and `flask.jsonify()` The Problem What is the difference between json.dumps() and flask.jsonify() and when should you use which?