{"action":"opened","issue":{"url":"https://api.github.com/repos/kenrobbins/python-rapidjson/issues/7","labels_url":"https://api.github.com/repos/kenrobbins/python-rapidjson/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/kenrobbins/python-rapidjson/issues/7/comments","events_url":"https://api.github.com/repos/kenrobbins/python-rapidjson/issues/7/events","html_url":"https://github.com/kenrobbins/python-rapidjson/issues/7","id":105717258,"number":7,"title":"Should we coerce keys to strings if they are invalid types?","user":{"login":"sontek","id":151924,"avatar_url":"https://avatars.githubusercontent.com/u/151924?v=3","gravatar_id":"","url":"https://api.github.com/users/sontek","html_url":"https://github.com/sontek","followers_url":"https://api.github.com/users/sontek/followers","following_url":"https://api.github.com/users/sontek/following{/other_user}","gists_url":"https://api.github.com/users/sontek/gists{/gist_id}","starred_url":"https://api.github.com/users/sontek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sontek/subscriptions","organizations_url":"https://api.github.com/users/sontek/orgs","repos_url":"https://api.github.com/users/sontek/repos","events_url":"https://api.github.com/users/sontek/events{/privacy}","received_events_url":"https://api.github.com/users/sontek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T01:55:13Z","updated_at":"2015-09-10T01:55:13Z","closed_at":null,"body":"Currently the libraries aren't consistent on this:\r\n\r\n```python\r\n>>> import json\r\n>>> json.dumps({True: False})\r\n'{\"true\": false}'\r\n>>> json.loads(json.dumps({True: False}))\r\n{'true': False}\r\n\r\n>>> import ujson\r\n>>> ujson.dumps({True: False})\r\n'{\"True\":false}'\r\n>>> ujson.loads(ujson.dumps({True: False}))\r\n{'True': False}\r\n>>> \r\n```\r\n\r\nBut `rapidjson` raises a `TypeError`:\r\n\r\n```\r\n>>> import rapidjson\r\n>>> rapidjson.dumps({True: False})\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nTypeError: keys must be a string\r\n```\r\n\r\nI'm kind of ok with that but wondering how compatible we want to be"}}