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