{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/source_gen/issues/65","labels_url":"https://api.github.com/repos/dart-lang/source_gen/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/source_gen/issues/65/comments","events_url":"https://api.github.com/repos/dart-lang/source_gen/issues/65/events","html_url":"https://github.com/dart-lang/source_gen/issues/65","id":115070707,"number":65,"title":"Allow customization of the resulting JSON keys","user":{"login":"johnryan-wf","id":4480502,"avatar_url":"https://avatars.githubusercontent.com/u/4480502?v=3","gravatar_id":"","url":"https://api.github.com/users/johnryan-wf","html_url":"https://github.com/johnryan-wf","followers_url":"https://api.github.com/users/johnryan-wf/followers","following_url":"https://api.github.com/users/johnryan-wf/following{/other_user}","gists_url":"https://api.github.com/users/johnryan-wf/gists{/gist_id}","starred_url":"https://api.github.com/users/johnryan-wf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnryan-wf/subscriptions","organizations_url":"https://api.github.com/users/johnryan-wf/orgs","repos_url":"https://api.github.com/users/johnryan-wf/repos","events_url":"https://api.github.com/users/johnryan-wf/events{/privacy}","received_events_url":"https://api.github.com/users/johnryan-wf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/source_gen/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-04T14:55:08Z","updated_at":"2015-11-04T17:08:55Z","closed_at":null,"body":"In Go, the serialized JSON for a struct can be customized using this syntax:\r\n\r\n```go\r\ntype Foo struct {\r\n\tBarBaz string `json:\"bar\"`\r\n\t...\r\n}\r\n```\r\n\r\nIt would be great if there was a similiar annotation for properties, so that classes could use a more meaningful names for their Dart API:\r\n\r\n```dart\r\n@JsonSerializable()\r\nclass Foo extends Object with _$FooSerializerMixin {\r\n  @Json(\"bar\")\r\n  final String barBaz;\r\n  ...\r\n}\r\n```\r\n\r\nresulting in \r\n\r\n```json\r\n{\r\n    \"bar\": \"_\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/dart-lang/source_gen/issues/comments/153794509","html_url":"https://github.com/dart-lang/source_gen/issues/65#issuecomment-153794509","issue_url":"https://api.github.com/repos/dart-lang/source_gen/issues/65","id":153794509,"user":{"login":"kevmoo","id":17034,"avatar_url":"https://avatars.githubusercontent.com/u/17034?v=3","gravatar_id":"","url":"https://api.github.com/users/kevmoo","html_url":"https://github.com/kevmoo","followers_url":"https://api.github.com/users/kevmoo/followers","following_url":"https://api.github.com/users/kevmoo/following{/other_user}","gists_url":"https://api.github.com/users/kevmoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kevmoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevmoo/subscriptions","organizations_url":"https://api.github.com/users/kevmoo/orgs","repos_url":"https://api.github.com/users/kevmoo/repos","events_url":"https://api.github.com/users/kevmoo/events{/privacy}","received_events_url":"https://api.github.com/users/kevmoo/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T17:08:55Z","updated_at":"2015-11-04T17:08:55Z","body":"@johnryan-wf Love the idea – pull requests welcome!\r\n"}}