title: How to slice a json file?
body: <p>I'm trying to slice a  json file to make it work properly: <a href="http://storage.googleapis.com/nacleanopenworldprodshards/ItemTemplates_cleanopenworldprodeu1.json" rel="nofollow noreferrer">JSON file</a></p>
  
  <p>Problem is the json file starts with <code>var Nations =</code>.</p>
  
  <pre><code>var Nations = {"Nations":[{"Name":"Neutral","CanBeUsedAsBotFiller":false,....
  </code></pre>
  
  <p>So I'm trying to get rid of it by slicing it off and saving it again:</p>
  
  <pre><code>import urllib.request
  
  urlData = 'http://storage.googleapis.com/nacleanopenworldprodshards/Nations_cleanopenworldprodeu1.json'
  webURL = urllib.request.urlopen(urlData)
  data = webURL.read()
  sliced_data = data[14:][:-1]
  
  f = open(r'file.json', 'w')
  f.write(str(sliced_data))
  f.close()
  </code></pre>
  
  <p>But the saved file shows a <code>b'</code></p>
  
  <pre><code>b'{"Nations":[{".....
  </code></pre>
  
  <p>How do I correctly get rid of it and have a json file that I can use in Python?</p>