{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/19197","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/19197/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/19197/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/19197/events","html_url":"https://github.com/symfony/symfony/pull/19197","id":162556876,"number":19197,"title":"[Serializer][FrameworkBundle] Add a CSV encoder","user":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Feature","name":"Feature","color":"02e10c"},{"url":"https://api.github.com/repos/symfony/symfony/labels/FrameworkBundle","name":"FrameworkBundle","color":"DDDDDD"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Serializer","name":"Serializer","color":"DDDDDD"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2016-06-27T21:51:19Z","updated_at":"2016-08-16T11:18:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/19197","html_url":"https://github.com/symfony/symfony/pull/19197","diff_url":"https://github.com/symfony/symfony/pull/19197.diff","patch_url":"https://github.com/symfony/symfony/pull/19197.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Branch?       | master\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | n/a\r\n| License       | MIT\r\n| Doc PR        | todo\r\n\r\nUsage:\r\n\r\n```php\r\nuse Symfony\\Component\\Serializer\\Serializer;\r\nuse Symfony\\Component\\Serializer\\Encoder\\CsvEncoder;\r\nuse Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer;\r\n\r\n$serializer = new Serializer(array(new ObjectNormalizer()), array(new CsvEncoder()));\r\n// or $serializer = $container->get('serializer'); when using the full stack framework\r\n$serializer->encode($something, 'csv');\r\n$serializer->decode(<<<'CSV'\r\nid,name\r\n1,Kévin\r\nCSV\r\n, 'csv');\r\n```\r\n\r\nCSV files must contain a header line with property names as keys.\r\n\r\nping @clementtalleu @Simperfit @gorghoa"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/240074172","html_url":"https://github.com/symfony/symfony/pull/19197#issuecomment-240074172","issue_url":"https://api.github.com/repos/symfony/symfony/issues/19197","id":240074172,"user":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T11:18:24Z","updated_at":"2016-08-16T11:18:24Z","body":"@mcfedr good idea but IMO it deserves its own PR. @symfony/deciders are you ok to merge this one?"}}
{"actor":{"display_login":"dunglas"}}