Write strings to access nested JSON objects
Project description
Jaccs allows you to pull data from JSON objects using string Python expressions. For example:
>>> from jaccs import access >>> access({'a': 'b': [{'c': 1}, {'c': 2}]}, '_.a.b[1].c') 2
This is expected to be most useful for combining specifications stored in external text files (say JSON or YAML) with data objects in Python.
Documentation is at https://jiffyclub.github.io/jaccs/.
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 Distributions
jaccs-1.0.0.zip
(5.9 kB
view hashes)
jaccs-1.0.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for jaccs-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bfe84ba33978923432d4227836251ee63779c3531649296b0f5cfc0277b8229 |
|
MD5 | 2c9b1ca531ecbf4cf0c91bf775f6991b |
|
BLAKE2b-256 | 19fc2507180914ab921e56ba1ae455dd982cc40cb87935523908f04ab751f8ef |