JSON objects are maps of strings to values. If you try to use another type of key, they’ll get converted to strings.
>>> json.loads(json.dumps({123: None}))
{'123': None}
>>> json.loads(json.dumps({None: None}))
{'null': None}
JSON objects are maps of strings to values. If you try to use another type of key, they’ll get converted to strings.
>>> json.loads(json.dumps({123: None}))
{'123': None}
>>> json.loads(json.dumps({None: None}))
{'null': None}