python - How to store a jsonify response into string variable -
json_data2 = some_func(db, pra1) data = jsonify(result = json_data2) i want convert "data" string variable, there convenient way?
the response class has get_data() accessor.
json_data2 = some_func(db, pra1) data = jsonify(result = json_data2) print data.get_data(as_text=true)
Comments
Post a Comment