Which JSON module can I use in Python 2.5?

后端 未结 6 572
自闭症患者
自闭症患者 2020-12-15 02:19

I would like to use Python\'s JSON module. It was only introduced in Python 2.6 and I\'m stuck with 2.5 for now. Is the particular JSON module provided with Python 2.6 avail

6条回答
  •  囚心锁ツ
    2020-12-15 02:53

    I wrote the cjson 1.0.6 patch and my advice is don't use cjson -- there are other problems with cjson in how it handles unicode etc. I don't think the speed of cjson is worth dealing with the bugs -- encoding/decoding json is usually a very small bit of the time needed to process a typical web request...

    json in python 2.6+ is basically simplejson brought into the standard library I believe...

提交回复
热议问题