Updated to get json from requests object using json() method instead of simple attribute.