title: Extend JSON files with Python
body: <p>I looked my problem up on stackoverflow and there are several solutions to my problem which just don't work in my case.<br>
  I  want to add a few new entries to my json file.</p>
  
  <p>My json file (data.json):</p>
  
  <pre><code>{
          "blabla1":"dubdub1",
          "blabla2":"dubdub2"
  }
  </code></pre>
  
  <p>My code (using the <strong>extend</strong> method):</p>
  
  <pre><code>import json
  
  with open('data.json') as json_data_file:
      data = json.load(json_data_file)
  result = list()
  
  result.extend(data)
  result.extend({'blabla3': 'dubdub3'})
  data = result
  
  print(data)
  </code></pre>
  
  <p>Which gives me an output like:</p>
  
  <pre><code>['blabla1', 'blabla2', 'blabla3']
  </code></pre>
  
  <p>My code (using the <strong>append</strong> method):</p>
  
  <pre><code>import json
  
  with open('data.json') as json_data_file:
      data = json.load(json_data_file)
  result = list()
  
  result.append(data)
  result.append({'blabla3': 'dubdub3'})
  data = result
  
  print(data)
  </code></pre>
  
  <p>Which gives me an output like:</p>
  
  <pre><code>[{'blabla1': 'dubdub1', 'blabla2': 'dubdub2'}, {'blabla3': 'dubdub3'}]
  </code></pre>
  
  <p>What I need in the end is this: </p>
  
  <pre><code>[{'blabla1': 'dubdub1', 'blabla2': 'dubdub2', 'blabla3': 'dubdub3'}]
  </code></pre>
  
  <p>So where am I going wrong? I'm sorry if the same question has already been answered, but I couldn't find something that worked for me. Thank you!</p>