Articles → PANDAS → Read json using read_json function in pandas

Read json using read_json function in pandas






Example


import pandas as pd
import json


jsonObject = json.dumps('{"Name": "Karan Gupta", "Age": 28, "Technology": "JSON", "Address": { "City": "Gurgaon",  "State": "Haryana"}}')


data = pd.read_json(jsonObject, lines=True)

data



Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, May 16, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250