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
Release history Release notifications | RSS feed
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)
Built Distribution
lzon-0.1.1-py3-none-any.whl
(3.0 kB
view hashes)