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

USAGE

js = jsonpathgenerator()

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.1.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.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsonpathgenerator-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 09d862238ac283dd9ea670ccbd935fa0e75f87084b705c797402c78ad4b9c610
MD5 726572fc18b1d7c34d7c0434f82f7cc1
BLAKE2b-256 b68c4d072096323bc6d5f7bdbe9a78de81bf4ad878915aab283f73088ab23caf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsonpathgenerator-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f52bda4cb223caa3c611429b7619717b510b108528dad0db50bd4e85fa58ce7
MD5 9144ef577497c3b734a5938d0b3c9467
BLAKE2b-256 25734ef6afe62e5efa3e5a258c044662b9530213c496ecd0b37319c4bee5b7e6

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