Skip to main content
qjson
=====

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

# install

`$pip install qjson`

or

just copy the qjson/qjson.py to your project.

#usage

```python
import qjson

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

info = qjson.loads(json_str)

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




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

-0.1.8:
supporting array has object as element.

Download files

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

Source Distribution

qjson-0.1.9.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file qjson-0.1.9.tar.gz.

File metadata

  • Download URL: qjson-0.1.9.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for qjson-0.1.9.tar.gz
Algorithm Hash digest
SHA256 9c9e0cd1c7d360508253940f1dbb5375a7b7318a835fde7ab5298db4c1e452bf
MD5 ee282ae97e62c96e3bc2fd9e12b444f7
BLAKE2b-256 fb16ed4204e94755d027f2e0bbc7af74a3997b1a382c59a9efcfc6bc5f58b2a6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.9 This release

1 file

0.1.8

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page