A tool for analysis json content with some key
Project description
json_tools
A tool for analysis json content
How to use
import json_tools
test_data = {
'a':{
'b':{
'c':'123',
'd':{
'c':123,
},
'e':[{'a':1}, {'b':2}, {'c':3}],
'f':[
{'a':
{'c':1}
},
{'b':
{'c':2}
}
]
}
}
}
for ret in json_tools.search(test_data, 'c'):
print(ret)
result:
['a', 'b', 'c']
['a', 'b', 'd', 'c']
['a', 'b', 'e', 2, 'c']
['a', 'b', 'f', 0, 'a', 'c']
['a', 'b', 'f', 1, 'b', 'c']
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
Close
Hashes for json-tools-python-0.1.0.macosx-11.4-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 769b21efddf071e9360722f773c252f4943f9f5fcc0e93121b7ad6885eb98760 |
|
MD5 | 9f714a608c8fbaf202561f16d2192467 |
|
BLAKE2b-256 | 291c47c466d4de56f01372733d58c5bc405c965a40a0f82de234d33369ee27a8 |