switch from jsonify to json.dumps