Convert class object into Json (with datetime field) - TypeError: Object of type datetime is not JSON serializable

后端 未结 0 1517
难免孤独
难免孤独 2021-01-18 02:28

I\'m trying to convert object into JSON. Converting from JSON to object was simple. When I try to use the dumps method, I\'m getting the error: TypeError:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题