title: Replacing JSON value in python
body: <p><strong>EDIT: sorry, i had a hard to see uppercase/lowercase typo. please someone delete this question.</strong></p>
  
  <p>I am trying to change the value of a json object with simplejson.
  The problem is that instead of replacing it, it is adding another entry with the same key.</p>
  
  <pre><code>{
    "main" : "value_to_replace"
  }
  </code></pre>
  
  <p>and after doing this in python:</p>
  
  <pre><code>json["main"] = "replaced"
  </code></pre>
  
  <p>becomes</p>
  
  <pre><code>{
    "main" : "value_to_replace",
    "main" : "replaced"
  }
  </code></pre>
  
  <p>which is infact still valid json.</p>