Skip to main content

JsonSimple

JsonSimple demo:

from JsonSimple import JsonSimple


js = JsonSimple('{"code":0,"data":{"total":2,"list":[{"id":1,"name":"zhang_san","0":"a"},{"id":2,"name":"li"}]}}')
data = js.data.list._0.__0  # noqa
print(data)
# a
data = js.data.list._0.name  # noqa
print(data)
# zhang_san
data = js.get_value('data.list.0.0')
print(data)
# a

js.set_value('data.list.0.50', '5455555')
print(js)
# {"code": 0, "data": {"total": 2, "list": [{"id": 1, "name": "zhang_san", "0": "a", "50": "5455555"}, {"id": 2, "name": "li"}]}}
js.set_value('data.list.0.new_field.name', 'new_name')
print(js)
# {"code": 0, "data": {"total": 2, "list": [{"id": 1, "name": "zhang_san", "0": "a", "50": "5455555", "new_field": {"name": "new_name"}}, {"id": 2, "name": "li"}]}}

Metadata

Release files for JsonSimple 0.0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for JsonSimple 0.0.0.3
File Size Uploaded Provenance Actions
JsonSimple-0.0.0.3.tar.gz 2.6 kB Without provenance Details for JsonSimple-0.0.0.3.tar.gz

Release files / JsonSimple-0.0.0.3.tar.gz

Download URL JsonSimple-0.0.0.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
18adf5f6fabc7a0067f8ed8471b0ac8eadb390e063e1c26ef3c7d355bd49c5a9
BLAKE2b-256 checksum
How to use checksums
5d2283c8b536d8dbc67aa2ee0b5dd54261fba88059b6138ca56648af19f075cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

Security for JsonSimple 0.0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.0.3 This release

1 release file No provenance

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