title: Python - write/ADD a new record in file with Json format
body: <p>I want to add a new record at the end of my file Json, For now it contains </p>
  
  <pre><code> {
      "1":
           { 
             "coef":987,
             "Term":
                {
                   "x1":6,"x2":0,"x3":8
                }
            }
    }
  </code></pre>
  
  <p>im reading this file like this :</p>
  
  <pre><code>  try:
        json_data=open ("/home/sage/content.txt")
        data=json.load (json_data)
    except IOError:
     print "Can't open your file"
  </code></pre>
  
  <p>how to add a new record at the end of file. </p>