How to overcome “datetime.datetime not JSON serializable” in python?
json.dumps(datetime.now)
意思是datetime.now不可json序列化,解决办法是转化成str或者加一个参数
cls=xxx
详细见:
http://stackoverflow.com/questions/11875770/how-to-overcome-datetime-datetime-not-json-serializable-in-python