How can i return dictionary in flask?

Viewed 17

I have dictionary and I am trying to jsonify in API. Dictionary is shown as below:

   dict =  {'couch.png': ((17, 198), (278, 431)),
          'chair.png': ((390, 193), (454, 269)),
          'couch001.png': ((543, 250), (639, 419))}

When i use

return jsonify({"Status":'fine'},
               {'results':dict})

It throws me error TypeError: Object of type int64 is not JSON serializable. How can I return the dictionary in it ?

0 Answers
Related