jaccs

Write strings to access nested JSON objects


License
Other
Install
pip install jaccs==1.0.0

Documentation

Jaccs - JSON Access Strings

https://travis-ci.org/jiffyclub/jaccs.svg?branch=master

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/.