Skip to main content

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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsonpathgenerator-0.0.2-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file jsonpathgenerator-0.0.2.tar.gz.

File metadata

  • Download URL: jsonpathgenerator-0.0.2.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for jsonpathgenerator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f350e20389c74e079c44b9c61a416ea850b859d5c8dd018ba845d86b0e4306ee
MD5 e2cab10624144b93defa00bade514f4c
BLAKE2b-256 85e6bc7a38d51370cf2f38b6cec34253905b93d2da284435cab89de7d7a8a583

See more details on using hashes here.

File details

Details for the file jsonpathgenerator-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: jsonpathgenerator-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for jsonpathgenerator-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4b9217d3162a2be3be363dfd7d7c72d38fab0499b4ee57dc71e7a27faa9fcb1
MD5 8245e670bac01ebe5025696e29aaa111
BLAKE2b-256 6c82376c11b3b5770e525034744557f9bed2a6bb9338ff2cc40d60a63f6e5eb8

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