title: python ordered_dict from json
body: <p>I am using Python 2.6.6, and trying to generate a ordered_dict from json string. I could understand that I could use object_pairs_hook of json Decoder/loads, but unfortunately it's not supported in 2.6.6. Is there any way out?</p>
  
  <pre><code>e.g. 
  template_s = '{ "aa": {"_type": "T1"}, "bb": {"_type": "T11"}}'
  json.loads(template_s, object_pairs_hook=OrderedDict)
  &gt;&gt;&gt; json.loads(json_str, object_pairs_hook=OrderedDict)                                                                                 
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/lib64/python2.6/json/__init__.py", line 318, in loads
    return cls(encoding=encoding, **kw).decode(s)
    TypeError: __init__() got an unexpected keyword argument 'object_pairs_hook'
  </code></pre>
  
  <p>Thanks</p>