{"action":"opened","issue":{"url":"https://api.github.com/repos/ansman/kotshi/issues/6","repository_url":"https://api.github.com/repos/ansman/kotshi","labels_url":"https://api.github.com/repos/ansman/kotshi/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ansman/kotshi/issues/6/comments","events_url":"https://api.github.com/repos/ansman/kotshi/issues/6/events","html_url":"https://github.com/ansman/kotshi/issues/6","id":247269158,"number":6,"title":"Compile failure for '-' contained property name","user":{"login":"oldergod","id":1767669,"avatar_url":"https://avatars3.githubusercontent.com/u/1767669?v=4","gravatar_id":"","url":"https://api.github.com/users/oldergod","html_url":"https://github.com/oldergod","followers_url":"https://api.github.com/users/oldergod/followers","following_url":"https://api.github.com/users/oldergod/following{/other_user}","gists_url":"https://api.github.com/users/oldergod/gists{/gist_id}","starred_url":"https://api.github.com/users/oldergod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oldergod/subscriptions","organizations_url":"https://api.github.com/users/oldergod/orgs","repos_url":"https://api.github.com/users/oldergod/repos","events_url":"https://api.github.com/users/oldergod/events{/privacy}","received_events_url":"https://api.github.com/users/oldergod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-02T04:20:16Z","updated_at":"2017-08-02T04:20:16Z","closed_at":null,"body":"A not compiling test is worth a thousand words.\r\n\r\n```kotlin\r\n@JsonSerializable\r\ndata class Escaped(val `first-name`: String)\r\n\r\n@Test\r\nfun testEscapedProperties() {\r\n    val adapter = moshi.adapter(Escaped::class.java)\r\n    val json = \"\"\"{\"first-name\":\"banana\"}\"\"\"\r\n    val actual = adapter.fromJson(json)\r\n    assertEquals(Escaped(\"banana\"), actual)\r\n    assertEquals(json, adapter.toJson(actual))\r\n}\r\n```"}}
{"actor":{"display_login":"oldergod"}}