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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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