title: Python + JSON, what happened to None?
body: <p>Dumping and loading a dict with <a href="https://docs.python.org/3/library/constants.html#None" rel="noreferrer"><code>None</code></a> as key, results in a <a href="https://docs.python.org/3.7/tutorial/datastructures.html#dictionaries" rel="noreferrer">dictionary</a> with <code>'null'</code> as the key.</p>
  
  <p>Values are un-affected, but things get even worse if a string-key <code>'null'</code> actually exists.</p>
  
  <p>What am I doing wrong here? Why can't I serialize/deserialize a <a href="https://docs.python.org/3.7/library/stdtypes.html#dict" rel="noreferrer"><code>dict</code></a> with <code>None</code> keys?</p>
  
  <h1>Example</h1>
  
  <pre><code>&gt;&gt;&gt; json.loads(json.dumps({'123':None, None:'What happened to None?'}))
  {u'123': None, u'null': u'What happened to None?'}
  &gt;&gt;&gt; json.loads(json.dumps({'123':None, None:'What happened to None?', 'null': 'boom'}))
  {u'123': None, u'null': u'boom'}
  </code></pre>