I'm trying to parse some JSON to get some values, for example the value of 'Count'. I can successfully retrieve the JSON and convert it to text but .get() returns 'NONE' for any values I try to get. The code I am using is:
from urllib import request
from bs4 import BeautifulSoup
import json
url = 'https://irus.jisc.ac.uk/api/sushilite/v1_7/GetReport/?Report=IR1&Release=4&RequestorID=Cambridge&BeginDate=2020-01&EndDate=2020-05&ItemIdentifier=irusuk%3A1861749&Granularity=Monthly&Pretty=Pretty'
html = request.urlopen(url).read()
soup = BeautifulSoup(html,'html.parser')
site_json=json.loads(soup.text)
x = site_json.get('Count')
print(x)