title: Copy JSON file then append it and a dictionary to another JSON file
body: <p>I have an existing JSON file, a new JSON file to be made, and an existing Python dictionary. What I'm trying to do is copy over the data in my existing JSON file to my new JSON file and then append my dictionary to the new JSON file.</p>
  
  <pre><code>mydict = {'a':1, 'b':2, 'c':3}
  </code></pre>
  
  <p>My JSON file looks like a Python dictionary:</p>
  
  <pre><code>{'hi': 4, 'bye' : 5, 'hello' : 6}
  </code></pre>
  
  <p>So far, I have: </p>
  
  <pre><code>with open('existing.json', 'r') as old, open ('recent.json', 'a') as new:
    #This is where i get stuck on how to copy over the contents of existing.json, and how to append mydict as well.
  </code></pre>
  
  <p>I want the end result to be one dictionary containing the contents of existing.json and <code>mydict</code>. Also if I turn this into a function I want to be able to always keep the contents that are already in recent.json and just append a new line of data. </p>