title: Loading JSON object in Python using urllib.request and json modules
body: <p>I am having problems making the modules 'json' and 'urllib.request' work together in a simple Python script test. Using Python 3.5 and here is the code:</p>
  
  <pre><code>import json
  import urllib.request
  
  urlData = "http://api.openweathermap.org/data/2.5/weather?q=Boras,SE"
  webURL = urllib.request.urlopen(urlData)
  print(webURL.read())
  JSON_object = json.loads(webURL.read()) #this is the line that doesn't work
  </code></pre>
  
  <p>When running script through command line the error I am getting is "<strong>TypeError:the JSON object must be str, not 'bytes'</strong>". I am new to Python so there is most likely a very easy solution to is. Appreciate any help here. </p>