Metadata-Version: 2.1
Name: navigate-json
Version: 1.0.4
Summary: A Python package to inpsect/manage json objects.
Home-page: https://https://github.com/70Shubham07/json_navigator
Author: 70Shubham07
Author-email: shubhamkwwr5@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown

# json_navigator




## Usage

#### from navJson import jsonParsing

### If the object you want to inspect is a Python list, use the method below


jsonToBeParsed = [ {"A":2}, {"B":3} ]

returnedCollectionOfCodes, _ = jsonParsing.listParserAndCodeCreator( jsonToBeParsed, rootCode = "jsonToBeParsed", collectionOfCodes = list() )

resultList = [  (code , eval(code) ) for code in returnedCollectionOfCodes   ]

##### Output: (jsonToBeParsed[0]["A"], 2), (jsonToBeParsed[0]["B"], 3)

### If it is a python dictionary, use below method


sonToBeParsed = {"A":2, "B":[3,4]}

returnedCollectionOfCodes, _ = jsonParsing.jsonParserAndCodeCreator( jsonToBeParsed, rootCode = "jsonToBeParsed", collectionOfCodes = list() )

resultList = [  (code , eval(code) ) for code in returnedCollectionOfCodes   ]

##### Output: (jsonToBeParsed["A"], 2), (jsonToBeParsed["B"][0], 3), (jsonToBeParsed["B"][1], 4 )


### You can use it for more complicated json structures!





