Skip to main content

Lazy loading for JSON packets

Project description

LZON (Lazy JSON)

Sometimes, an API may not provide the response as a fully developed JSON object. Certain keys might need to be reparsed as JSON before you can then continue to index it. LZON should help with this. You index, and it only parses when it's relevant.

Example

import lzon

response = r"""
{
    "bumble": "{\"bee\": [1, 2, 64]}"
}
"""

data = lzon.loads(response)
print(data['bumble']['bee'][2])  # Should return 64

Project details


Download files

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

Source Distribution

lzon-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

lzon-0.1.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file lzon-0.1.1.tar.gz.

File metadata

  • Download URL: lzon-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for lzon-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0f0c1c9bd9b88c53518b30fa4db25dfe9b9cbddea451ecc68246cbf8fb13ca03
MD5 872c54e60683ced653cb5c31d9c90aa2
BLAKE2b-256 b704b1a362e9f9cbdca5ffe4245c907f0501a57d39ca3fbb35e0a69d2b8101ae

See more details on using hashes here.

File details

Details for the file lzon-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lzon-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for lzon-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad98d57531926f439626dd779863b78e87af8e6114a49a9d9fb9215cd9c5dc71
MD5 866164cff2c970896452459ee9e7f295
BLAKE2b-256 1f5c5537814552a4fe683acacfc09293671881eed43a823d269116926eedb8af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page