{"action":"opened","issue":{"url":"https://api.github.com/repos/BlackEdder/painlessjson/issues/44","labels_url":"https://api.github.com/repos/BlackEdder/painlessjson/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/BlackEdder/painlessjson/issues/44/comments","events_url":"https://api.github.com/repos/BlackEdder/painlessjson/issues/44/events","html_url":"https://github.com/BlackEdder/painlessjson/issues/44","id":103184747,"number":44,"title":"Bad output with associative arrays where value type is a struct","user":{"login":"Herringway","id":905162,"avatar_url":"https://avatars.githubusercontent.com/u/905162?v=3","gravatar_id":"","url":"https://api.github.com/users/Herringway","html_url":"https://github.com/Herringway","followers_url":"https://api.github.com/users/Herringway/followers","following_url":"https://api.github.com/users/Herringway/following{/other_user}","gists_url":"https://api.github.com/users/Herringway/gists{/gist_id}","starred_url":"https://api.github.com/users/Herringway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Herringway/subscriptions","organizations_url":"https://api.github.com/users/Herringway/orgs","repos_url":"https://api.github.com/users/Herringway/repos","events_url":"https://api.github.com/users/Herringway/events{/privacy}","received_events_url":"https://api.github.com/users/Herringway/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-26T06:15:33Z","updated_at":"2015-08-26T06:15:33Z","closed_at":null,"body":"```D\r\nstruct Test {\r\n\t\tstruct Inner {\r\n\t\t\tstring str;\r\n\t\t}\r\n\t\tInner[string] testKey;\r\n\t}\r\n\twriteln(Test([\"test\": Test.Inner(\"Test2\")]).toJSON().toPrettyString());\r\n```\r\nProduces the incorrect JSON output\r\n```json\r\n{\r\n    \"testKey\": {\r\n        \"\\\"test\\\"\": {\r\n            \"str\": \"Test2\"\r\n        }\r\n    }\r\n}\r\n```\r\nrather than the correct output \r\n```json\r\n{\r\n    \"testKey\": {\r\n        \"test\": {\r\n            \"str\": \"Test2\"\r\n        }\r\n    }\r\n}\r\n```\r\nIn addition, attempting to deserialize both the incorrect and correct output results in something even more unexpected: the entries in the associative array are missing entirely (```Test([])```)"}}