Error in loading json file - Week - 12 - Visualization - Stacked bar plot

While loading JSON file of covid-19 India data - i found the error in loading it.

the error is: name ’json’ is not defined

I have also added the code : import urllib.request - still it shows the same error.

full cod is here:

url = 'https://api.covid19india.org/states_daily.json'

urllib.request.urlretrieve(url, 'data.json')

with open('data.json') as f:

    data = json.load(f)

data = data['states_daily']

df = pd.json_normalize(data)

Hi @Vrunda_Gadesha,
You’re missed the snippet:

import json

ok @Ishvinder thank you so much for your prompt response.