Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: plt normalized histogram 
Python :: save pythonpath 
Python :: how to delete records in pandas before a certain date 
Python :: python3 return a list of indexes of a specific character in a string 
Python :: clock in python 
Python :: force utf-8 encoding python 
Python :: how to log ip addresses in flask 
Python :: activate venv enviroment 
Python :: remove last element from dictionary python 
Python :: gamestop 
Python :: how to play mp3 audio in python 
Python :: dataframe sort by column 
Python :: huggingface default cache dir 
Python :: deleting duplicates in list python 
Python :: get current time python 
Python :: how to convert an image to matrix in python 
Python :: selenium scroll down python 
Python :: print hello world python 
Python :: how to define dtype of each column before actually reading csv file 
Python :: how to get RGB value from pixel in screen live python 
Python :: django phone number field 
Python :: google colab how to upload a folder 
Python :: round python 
Python :: numpy compute mad 
Python :: date to day python 
Python :: blackjack in python 
Python :: display pythonpath linux 
Python :: print var python 
Python :: convert array to list python 
Python :: AdaBoost in Python 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =