title: Trying to convert a big tsv file to json
body: <p>I've a tsv file, which I need to convert it into a json file. I'm using this python script which is exporting a empty json file. </p>
  
  <pre><code>import json
  data={}
  with open('data.json', 'w') as outfile,open("data.tsv","r") as f:
  for line in f:
     sp=line.split()
     data.setdefault("data",[])
  json.dump(data, outfile)
  </code></pre>