{"action":"created","issue":{"url":"https://api.github.com/repos/danielwertheim/mycouch/issues/99","labels_url":"https://api.github.com/repos/danielwertheim/mycouch/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/danielwertheim/mycouch/issues/99/comments","events_url":"https://api.github.com/repos/danielwertheim/mycouch/issues/99/events","html_url":"https://github.com/danielwertheim/mycouch/issues/99","id":125783192,"number":99,"title":"Dictionary- string keys incorrect serialized","user":{"login":"cristiursachi","id":4896142,"avatar_url":"https://avatars.githubusercontent.com/u/4896142?v=3","gravatar_id":"","url":"https://api.github.com/users/cristiursachi","html_url":"https://github.com/cristiursachi","followers_url":"https://api.github.com/users/cristiursachi/followers","following_url":"https://api.github.com/users/cristiursachi/following{/other_user}","gists_url":"https://api.github.com/users/cristiursachi/gists{/gist_id}","starred_url":"https://api.github.com/users/cristiursachi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristiursachi/subscriptions","organizations_url":"https://api.github.com/users/cristiursachi/orgs","repos_url":"https://api.github.com/users/cristiursachi/repos","events_url":"https://api.github.com/users/cristiursachi/events{/privacy}","received_events_url":"https://api.github.com/users/cristiursachi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-09T21:40:59Z","updated_at":"2016-01-09T21:50:35Z","closed_at":"2016-01-09T21:50:35Z","body":"Having following class\r\n\r\n```cs\r\n public class MyDoc\r\n    {\r\n        public string Id { get; set; }\r\n        public string Rev { get; set; }\r\n        public Dictionary<string, string> MyDict { get; set; }\r\n}\r\n```\r\n\r\nThen I add a item in dictionary with first char with caps:\r\n```cs\r\nMyDoc doc=new MyDoc();\r\n\r\ndoc.MyDict=new Dictionary<string,string>();\r\ndoc.MyDict.Add(\"AKey\",\"somevalue\");\r\n\r\n using (var client= new MyCouchClient(\"DbServerUrl\", \"MyDB\"))\r\n   {\r\n var resp = await client.Entities.PostAsync(doc);\r\n}\r\n```\r\n\r\nIt will be stored like that:\r\n```json\r\n{\r\n   \"_id\": \"267030e8bcee33b87389405b1e0992b5\",\r\n   \"_rev\": \"1-a1c552ab3d5457080f012d97bfdbf9f8\",\r\n   \"$doctype\": \"myDoc\",\r\n   \"myDict\": {\r\n       \"aKey\": \"1-somevalue\"\r\n   }\r\n}\r\n```\r\nNotice that AKey became aKey. Is this by design? if yes, why?"},"comment":{"url":"https://api.github.com/repos/danielwertheim/mycouch/issues/comments/170285294","html_url":"https://github.com/danielwertheim/mycouch/issues/99#issuecomment-170285294","issue_url":"https://api.github.com/repos/danielwertheim/mycouch/issues/99","id":170285294,"user":{"login":"cristiursachi","id":4896142,"avatar_url":"https://avatars.githubusercontent.com/u/4896142?v=3","gravatar_id":"","url":"https://api.github.com/users/cristiursachi","html_url":"https://github.com/cristiursachi","followers_url":"https://api.github.com/users/cristiursachi/followers","following_url":"https://api.github.com/users/cristiursachi/following{/other_user}","gists_url":"https://api.github.com/users/cristiursachi/gists{/gist_id}","starred_url":"https://api.github.com/users/cristiursachi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristiursachi/subscriptions","organizations_url":"https://api.github.com/users/cristiursachi/orgs","repos_url":"https://api.github.com/users/cristiursachi/repos","events_url":"https://api.github.com/users/cristiursachi/events{/privacy}","received_events_url":"https://api.github.com/users/cristiursachi/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T21:50:35Z","updated_at":"2016-01-09T21:50:35Z","body":"It seems it's by design: https://github.com/danielwertheim/mycouch/wiki/documentation#serialization since the dictionary key can be considered a property."}}