{"action":"created","issue":{"url":"https://api.github.com/repos/square/moshi/issues/602","repository_url":"https://api.github.com/repos/square/moshi","labels_url":"https://api.github.com/repos/square/moshi/issues/602/labels{/name}","comments_url":"https://api.github.com/repos/square/moshi/issues/602/comments","events_url":"https://api.github.com/repos/square/moshi/issues/602/events","html_url":"https://github.com/square/moshi/issues/602","id":342849907,"node_id":"MDU6SXNzdWUzNDI4NDk5MDc=","number":602,"title":"Codegen @Json wrong name generation when using special characters","user":{"login":"pedromvu","id":22568427,"node_id":"MDQ6VXNlcjIyNTY4NDI3","avatar_url":"https://avatars1.githubusercontent.com/u/22568427?v=4","gravatar_id":"","url":"https://api.github.com/users/pedromvu","html_url":"https://github.com/pedromvu","followers_url":"https://api.github.com/users/pedromvu/followers","following_url":"https://api.github.com/users/pedromvu/following{/other_user}","gists_url":"https://api.github.com/users/pedromvu/gists{/gist_id}","starred_url":"https://api.github.com/users/pedromvu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedromvu/subscriptions","organizations_url":"https://api.github.com/users/pedromvu/orgs","repos_url":"https://api.github.com/users/pedromvu/repos","events_url":"https://api.github.com/users/pedromvu/events{/privacy}","received_events_url":"https://api.github.com/users/pedromvu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-19T18:58:07Z","updated_at":"2018-07-19T23:16:00Z","closed_at":null,"author_association":"NONE","body":"When using something like:\r\n\r\n```Kotlin\r\ndata class TimeStamp(@Json(name = \"\\$date\") val millis: Long)\r\n```\r\n\r\nIn the generated adapter the name gets converted to:\r\n\r\n```Kotlin\r\nJsonReader.Options.of(\"$date\")\r\n```\r\n\r\nWhich causes an Unresolved reference error when compiling, since the compiler is looking for a variable named 'date'"},"comment":{"url":"https://api.github.com/repos/square/moshi/issues/comments/406442165","html_url":"https://github.com/square/moshi/issues/602#issuecomment-406442165","issue_url":"https://api.github.com/repos/square/moshi/issues/602","id":406442165,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjQ0MjE2NQ==","user":{"login":"NightlyNexus","id":4032667,"node_id":"MDQ6VXNlcjQwMzI2Njc=","avatar_url":"https://avatars2.githubusercontent.com/u/4032667?v=4","gravatar_id":"","url":"https://api.github.com/users/NightlyNexus","html_url":"https://github.com/NightlyNexus","followers_url":"https://api.github.com/users/NightlyNexus/followers","following_url":"https://api.github.com/users/NightlyNexus/following{/other_user}","gists_url":"https://api.github.com/users/NightlyNexus/gists{/gist_id}","starred_url":"https://api.github.com/users/NightlyNexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightlyNexus/subscriptions","organizations_url":"https://api.github.com/users/NightlyNexus/orgs","repos_url":"https://api.github.com/users/NightlyNexus/repos","events_url":"https://api.github.com/users/NightlyNexus/events{/privacy}","received_events_url":"https://api.github.com/users/NightlyNexus/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T23:16:00Z","updated_at":"2018-07-19T23:16:00Z","author_association":"COLLABORATOR","body":"Good find. Seems like a KotlinPoet bug.\r\nfiled https://github.com/square/kotlinpoet/issues/427"}}
{"actor":{"display_login":"NightlyNexus"}}