title: Append key value to existing json using python
body: <p>I am trying to append a value to existing JSON string using python, after that I have to load it into MongoDB</p>
  
  <pre><code>import xmltodict
  
  from pymongo import Connection
  
  s = '''&lt;?xml version="1.0"?&gt;
  &lt;note&gt;
  &lt;to&gt;aaa&lt;/to&gt;
  &lt;from&gt;bbb&lt;/from&gt;
  &lt;heading&gt;Reminder&lt;/heading&gt;
  &lt;body&gt;This is the content&lt;/body&gt;
  &lt;/note&gt;'
  
  result = xmltodict.parse(s)
  
  result.append({"cc":var1})
  
  print result
  </code></pre>
  
  <p>But following error show : </p>
  
  <pre><code>AttributeError: 'OrderedDict' object has no attribute 'append'
  </code></pre>
  
  <p>can you please help me to resolve this? I tried with different append options but facing some error.</p>