开发者

Best json library for Python 2.2 or earlier?

A platform I am working on only supports python 2.2. I need to process some simple JSON input. JSON wasn't part of the standard library in version 2.2 and simpleJS开发者_StackOverflowON requires a later version as well. What are my options? Thanks!


Python 2.2 is nine years old and there's a security issue that ships with 2.2 that they don't distribute a compiled fix for (there's a patch but not a new 2.2 release to cover it). Python 2.2 is unsupported and outdated, and Python comes with a json module as of 2.6. Your best bet is to find a provider that doesn't use old, insecure, and unsupported pieces of software.


@brice You can use old release of simplejson python library with weblogic. If beahome is /home/oracle/middleware then commands will be:

curl -o /tmp/python2.2.zip -LJO https://github.com/simplejson/simplejson/archive/python2.2.zip
unzip /tmp/python2.2.zip -d /tmp/python2.2
cp -R /tmp/python2.2/simplejson-python2.2/simplejson /home/oracle/middleware/oracle_common/common/wlst
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜