Skip to main content

A library of useful functions to get value from nested JSON

Project description

jQuery selector liked JSON query tool

Example Usage

import jjson

# Get string from nested JSON
j = {
        "foo": {
                "bar": {
                        "test": "hello world"
                }
        }
}
p = "foo.bar.test"
print jjson.extract(j, p)
# hello world

Install

The latest stable version can always be installed or updated via pip:

$ pip install git+https://github.com/festum/jjson.git

# Alternative
$ pip install jjson

TODO

  • CLI

  • Test case

  • Change value from certain node

Contributions

Issues and Pull Requests are always welcome.

License

Code and documentation are available according to the MIT License (see LICENSE).

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

jjson-0.0.3.linux-x86_64.tar.gz (1.4 kB view hashes)

Uploaded Source

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