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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -