Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get key and value from json array object in python

import json
with open("test.json") as jsonFile:
	data = json.load(jsonFile)
	jsonData = data["emp_details"]
	for x in jsonData:
		keys = x.keys()
		print(keys)
		values = x.values()
		print(values)
 
PREVIOUS NEXT
Tagged: #key #json #array #object #python
ADD COMMENT
Topic
Name
1+7 =