Skip to content

a simple script help you find certain value in a json data structure. It will give you the path to the key.

License

Notifications You must be signed in to change notification settings

JingShing-Python/json_value_finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

json_value_finder

a simple script help you find certain value in a json data structure. It will give you the path to the key.

Example

data = {
      "key1": "value1",
      "key2": {
          "key3": "value3",
          "key4": "value4"
      },
      "key5": [
          "value5",
          "value6",
          {"key6": "value7"}
      ]
  }

  result_path = find_path(data, "value7")
  print(result_path)  # Output: ['key5', 2, 'key6']

About

a simple script help you find certain value in a json data structure. It will give you the path to the key.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages