JSON module for python 2.4?

后端 未结 3 1054
春和景丽
春和景丽 2021-02-05 06:13

I\'m accustomed to doing import json in Python 2.6, however I now need to write some code for Python 2.4. Is there a JSON library with a similar interface that is

3条回答
  •  醉酒成梦
    2021-02-05 06:42

    Now, a few years later, simplejson does only support python 2.5+. No more simplejson for systems stuck on 2.4. Even though it is not supported, you may find older packages on pypi. 2.0.9 or 2.1.0 should work.

    pip install simplejson==2.1.0
    

    (I could not comment on the chosen answer, but this just bit me hard, so it may be useful to others as well)

提交回复
热议问题