简体   繁体   中英

Python 2.5 json without installing simplejson

I'm trying to deploy some code on several nodes for a distributed project. These nodes only have Python 2.5 on them, which is a problem because I'm sending data in json (mostly just json.loads and json.dumps). I can't install new modules or upgrade python for policy reasons.

I guess one way to get around this would be to manually convert strings in json to python objects and vice versa, but this sounds painful. Is there an easier way to do this?

What about manually downloading simplejson and use it as an application module? You can get it here: https://pypi.python.org/pypi/simplejson

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM