Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance 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

AltStyle によって変換されたページ (->オリジナル) /