Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jayachithra/parsejson
Python module to Parse nested json file
https://github.com/jayachithra/parsejson
Last synced: 24 days ago
JSON representation
Python module to Parse nested json file
- Host: GitHub
- URL: https://github.com/jayachithra/parsejson
- Owner: jayachithra
- Created: 2019-10-18T15:01:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T09:03:33.000Z (almost 5 years ago)
- Last Synced: 2023-03-03T21:55:10.534Z (almost 2 years ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ParseJson
Python module to Parse nested json fileInput: Nested json file content (in dict or list format)
Ouput: Returns a dict of all json fields and their data types. If the json format is consistent multiple dicts will be returned for each format.## Steps
1. Download the **nestedparse.py** file and place it inside the Lib/site_packages folder
2. Load the json data as usual using
**with open("filename.json") as datafile:
data = json.load(datafile)**
2. To call the parser use **nestedparse.parse(data)**. Make sure the original data is in either dict or list format.