title: OrderedDict with specific order in Python
body: <p>I have a dictionary that I am sending to an API, and unfortunately the API requires the dictionary to be in a very specific order. I am loading the dictionary from a file.</p>
  
  <p>Right now <code>json.load(fh, object_pairs_hook=OrderedDict)</code> does exactly what it's supposed to and orders the top level keys alphabetically, but I need the dictionary to be ordered differently.</p>
  
  <p>Specific order:</p>
  
  <pre><code>{
    "kind": "string",
    "apiVersion": "string",
    "metadata": {...},
    "spec": {
      "subKey": "string"
    }
  }
  </code></pre>
  
  <p>How do I specify the dictionary order of top and sub level keys with dictionaries that are loaded from a file?</p>