Skip to main content

quick and dirty way to convert json string to python object

Project description


quick and dirty way to convert json string to python object.

# install

`$pip install qjson`


just copy the qjson/ to your project.


import qjson

json_str = '{"person":\
{"name":"jerry", "age":32, "web":{"url":"", "desc":"blog"}}, \
"grade": "a", "score":[80,90]}'

info = qjson.loads(json_str)

assert == "jerry"
assert info.grade == "a"
assert info.score == [80, 90]

fix array as top element, which also has object within it.

supporting array has object as element.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for qjson, version 0.1.9
Filename, size File type Python version Upload date Hashes
Filename, size qjson-0.1.9.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page