The json class of python3 is too rubbish. For complex types and dates, you have to write your own converter to implement them.
But after referring to online articles, I still can't write a json class that can perfectly support complex types and date types.
I can only ask the gods for help!
天蓬老师2017-05-19 10:09:47
I have always used the built-in converter to implement these functions. If you find it troublesome, you can try the following libraries:
jsonext
jsonplus
python-jsonte
jsonplus
jsonplustypes
The second one supports the complex types and date types you mentioned.