{"action":"created","issue":{"url":"https://api.github.com/repos/pyeve/eve/issues/1173","repository_url":"https://api.github.com/repos/pyeve/eve","labels_url":"https://api.github.com/repos/pyeve/eve/issues/1173/labels{/name}","comments_url":"https://api.github.com/repos/pyeve/eve/issues/1173/comments","events_url":"https://api.github.com/repos/pyeve/eve/issues/1173/events","html_url":"https://github.com/pyeve/eve/issues/1173","id":342199093,"node_id":"MDU6SXNzdWUzNDIxOTkwOTM=","number":1173,"title":"JSON with a dot in it's key is not parsed correctly","user":{"login":"tomaskikutis","id":2076953,"node_id":"MDQ6VXNlcjIwNzY5NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/2076953?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaskikutis","html_url":"https://github.com/tomaskikutis","followers_url":"https://api.github.com/users/tomaskikutis/followers","following_url":"https://api.github.com/users/tomaskikutis/following{/other_user}","gists_url":"https://api.github.com/users/tomaskikutis/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaskikutis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaskikutis/subscriptions","organizations_url":"https://api.github.com/users/tomaskikutis/orgs","repos_url":"https://api.github.com/users/tomaskikutis/repos","events_url":"https://api.github.com/users/tomaskikutis/events{/privacy}","received_events_url":"https://api.github.com/users/tomaskikutis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-18T06:53:17Z","updated_at":"2018-08-08T07:54:53Z","closed_at":null,"author_association":"NONE","body":"When sending a request with JSON payload having a dot in the key, eve creates a sub dictionary:\r\n`{\"hello.world\": true}` parses to `{\"hello\": {\"world\": true}}`\r\n\r\nEnvironment: Ubuntu 16.04, Python 3.6.5, Eve 0.7.8"},"comment":{"url":"https://api.github.com/repos/pyeve/eve/issues/comments/411320076","html_url":"https://github.com/pyeve/eve/issues/1173#issuecomment-411320076","issue_url":"https://api.github.com/repos/pyeve/eve/issues/1173","id":411320076,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTMyMDA3Ng==","user":{"login":"nicolaiarocci","id":512968,"node_id":"MDQ6VXNlcjUxMjk2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/512968?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolaiarocci","html_url":"https://github.com/nicolaiarocci","followers_url":"https://api.github.com/users/nicolaiarocci/followers","following_url":"https://api.github.com/users/nicolaiarocci/following{/other_user}","gists_url":"https://api.github.com/users/nicolaiarocci/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaiarocci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaiarocci/subscriptions","organizations_url":"https://api.github.com/users/nicolaiarocci/orgs","repos_url":"https://api.github.com/users/nicolaiarocci/repos","events_url":"https://api.github.com/users/nicolaiarocci/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaiarocci/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T07:54:53Z","updated_at":"2018-08-08T07:54:53Z","author_association":"MEMBER","body":"- Mongo (pymongo) will raise `bson.errors.InvalidDocument: key 'hello.world' must not contain '.'` if you try to store such a document. \r\n- To circumvent that, we could escape the dot (`hello\\uff0eworld`) but then, all queries should be executed against the escaped field name (for reference, see https://stackoverflow.com/a/16571347/323269). Don't think it would worth the penalty hit and the added complexity.\r\n- Are you on a data layer other than mongo?"}}
{"actor":{"display_login":"nicolaiarocci"}}