search

Home  >  Q&A  >  body text

Looking for a python json class that can convert complex types and times

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!

phpcn_u1582phpcn_u15822773 days ago705

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师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.

    reply
    0
  • Cancelreply