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

Uploaded Source

File details

Details for the file jjson-0.0.3.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for jjson-0.0.3.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 6f00b64681f3fc457d1e502dbb3967ca8feda7712fcf45968e845d2495b6878c
MD5 7e8b084e6d4f1ecb7d47a8a8d34a2b4c
BLAKE2b-256 8f49c311e037c8323b0b19764058e6d2eab28beb60e97e9080093446a014a189

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page