Get Json path from a nested json document. specify notation dot or bracket
Project description
JSONPathGenerator
Python project to generate Json path in notations dot or bracket.
funtion to convert a nested json to nested dictionary enumerating the lists to child dictionaries
INSTALLATION
pip install jsonpathgenerator
USAGE
from jsonpathgenerator import jsonpath
js = jsonpath()
js.get_json_path(json-line,notation='dot')
notation = "dot"
notation = "bracket"
Usage Examples
js = jsonpath()
with open('sample_json.json','r') as file:
json_line=json.load(file)
json_path_list=js.get_json_path(json_line,notation="bracket")
print(json_path_list)
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
jsonpathgenerator-0.0.2.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for jsonpathgenerator-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4b9217d3162a2be3be363dfd7d7c72d38fab0499b4ee57dc71e7a27faa9fcb1 |
|
MD5 | 8245e670bac01ebe5025696e29aaa111 |
|
BLAKE2b-256 | 6c82376c11b3b5770e525034744557f9bed2a6bb9338ff2cc40d60a63f6e5eb8 |