{"action":"reopened","number":17603,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/17603","id":57665914,"html_url":"https://github.com/symfony/symfony/pull/17603","diff_url":"https://github.com/symfony/symfony/pull/17603.diff","patch_url":"https://github.com/symfony/symfony/pull/17603.patch","issue_url":"https://api.github.com/repos/symfony/symfony/issues/17603","number":17603,"state":"open","locked":false,"title":"[Serializer] Add a normalizer that support JsonSerializable objects","user":{"login":"mcfedr","id":704356,"avatar_url":"https://avatars.githubusercontent.com/u/704356?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfedr","html_url":"https://github.com/mcfedr","followers_url":"https://api.github.com/users/mcfedr/followers","following_url":"https://api.github.com/users/mcfedr/following{/other_user}","gists_url":"https://api.github.com/users/mcfedr/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfedr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfedr/subscriptions","organizations_url":"https://api.github.com/users/mcfedr/orgs","repos_url":"https://api.github.com/users/mcfedr/repos","events_url":"https://api.github.com/users/mcfedr/events{/privacy}","received_events_url":"https://api.github.com/users/mcfedr/received_events","type":"User","site_admin":false},"body":"This normalizer makes it easier to start to combine using `JsonSerializable` objects with the Symfony serializer. I have implemented it in a number of projects and #13496 shows that others are doing so as well. So it seemed like it would be useful to include it in the Serializer component.\r\n\r\nIt handles circular references in the same way as the other normalizers.\r\n\r\nBecause groups and max depth are based on property annotations it doesn't make sense to apply them here.\r\n\r\n| Q             | A\r\n| ------------- | ---\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 | #13496\r\n| License       | MIT\r\n| Doc PR        | \r\n","created_at":"2016-01-29T16:04:13Z","updated_at":"2016-02-02T08:19:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ff8da0c67ed703e0ff746b7e54b90a28088090a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony/pulls/17603/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony/pulls/17603/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/17603/comments","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/6fb0978773715a8cc50e4fb661aca950729b3774","head":{"label":"mcfedr:add-json-serializer","ref":"add-json-serializer","sha":"6fb0978773715a8cc50e4fb661aca950729b3774","user":{"login":"mcfedr","id":704356,"avatar_url":"https://avatars.githubusercontent.com/u/704356?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfedr","html_url":"https://github.com/mcfedr","followers_url":"https://api.github.com/users/mcfedr/followers","following_url":"https://api.github.com/users/mcfedr/following{/other_user}","gists_url":"https://api.github.com/users/mcfedr/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfedr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfedr/subscriptions","organizations_url":"https://api.github.com/users/mcfedr/orgs","repos_url":"https://api.github.com/users/mcfedr/repos","events_url":"https://api.github.com/users/mcfedr/events{/privacy}","received_events_url":"https://api.github.com/users/mcfedr/received_events","type":"User","site_admin":false},"repo":{"id":29537909,"name":"symfony","full_name":"mcfedr/symfony","owner":{"login":"mcfedr","id":704356,"avatar_url":"https://avatars.githubusercontent.com/u/704356?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfedr","html_url":"https://github.com/mcfedr","followers_url":"https://api.github.com/users/mcfedr/followers","following_url":"https://api.github.com/users/mcfedr/following{/other_user}","gists_url":"https://api.github.com/users/mcfedr/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfedr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfedr/subscriptions","organizations_url":"https://api.github.com/users/mcfedr/orgs","repos_url":"https://api.github.com/users/mcfedr/repos","events_url":"https://api.github.com/users/mcfedr/events{/privacy}","received_events_url":"https://api.github.com/users/mcfedr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcfedr/symfony","description":"The Symfony PHP framework","fork":true,"url":"https://api.github.com/repos/mcfedr/symfony","forks_url":"https://api.github.com/repos/mcfedr/symfony/forks","keys_url":"https://api.github.com/repos/mcfedr/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcfedr/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcfedr/symfony/teams","hooks_url":"https://api.github.com/repos/mcfedr/symfony/hooks","issue_events_url":"https://api.github.com/repos/mcfedr/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/mcfedr/symfony/events","assignees_url":"https://api.github.com/repos/mcfedr/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/mcfedr/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/mcfedr/symfony/tags","blobs_url":"https://api.github.com/repos/mcfedr/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcfedr/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcfedr/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcfedr/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcfedr/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/mcfedr/symfony/languages","stargazers_url":"https://api.github.com/repos/mcfedr/symfony/stargazers","contributors_url":"https://api.github.com/repos/mcfedr/symfony/contributors","subscribers_url":"https://api.github.com/repos/mcfedr/symfony/subscribers","subscription_url":"https://api.github.com/repos/mcfedr/symfony/subscription","commits_url":"https://api.github.com/repos/mcfedr/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcfedr/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcfedr/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcfedr/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcfedr/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/mcfedr/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcfedr/symfony/merges","archive_url":"https://api.github.com/repos/mcfedr/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcfedr/symfony/downloads","issues_url":"https://api.github.com/repos/mcfedr/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/mcfedr/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/mcfedr/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/mcfedr/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcfedr/symfony/labels{/name}","releases_url":"https://api.github.com/repos/mcfedr/symfony/releases{/id}","deployments_url":"https://api.github.com/repos/mcfedr/symfony/deployments","created_at":"2015-01-20T15:56:44Z","updated_at":"2015-01-20T15:56:57Z","pushed_at":"2016-02-02T08:08:12Z","git_url":"git://github.com/mcfedr/symfony.git","ssh_url":"git@github.com:mcfedr/symfony.git","clone_url":"https://github.com/mcfedr/symfony.git","svn_url":"https://github.com/mcfedr/symfony","homepage":"symfony.com","size":67052,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"2.7"}},"base":{"label":"symfony:master","ref":"master","sha":"83b53f4a89fa2f436ba0f8d88b0714aa534b2cd2","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":458058,"name":"symfony","full_name":"symfony/symfony","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony","description":"The Symfony PHP framework","fork":false,"url":"https://api.github.com/repos/symfony/symfony","forks_url":"https://api.github.com/repos/symfony/symfony/forks","keys_url":"https://api.github.com/repos/symfony/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony/teams","hooks_url":"https://api.github.com/repos/symfony/symfony/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony/events","assignees_url":"https://api.github.com/repos/symfony/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony/tags","blobs_url":"https://api.github.com/repos/symfony/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony/subscription","commits_url":"https://api.github.com/repos/symfony/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony/merges","archive_url":"https://api.github.com/repos/symfony/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony/downloads","issues_url":"https://api.github.com/repos/symfony/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony/releases{/id}","deployments_url":"https://api.github.com/repos/symfony/symfony/deployments","created_at":"2010-01-04T14:21:21Z","updated_at":"2016-02-02T06:46:52Z","pushed_at":"2016-02-01T23:11:11Z","git_url":"git://github.com/symfony/symfony.git","ssh_url":"git@github.com:symfony/symfony.git","clone_url":"https://github.com/symfony/symfony.git","svn_url":"https://github.com/symfony/symfony","homepage":"symfony.com","size":100376,"stargazers_count":11655,"watchers_count":11655,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":4581,"mirror_url":null,"open_issues_count":782,"forks":4581,"open_issues":782,"watchers":11655,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17603"},"html":{"href":"https://github.com/symfony/symfony/pull/17603"},"issue":{"href":"https://api.github.com/repos/symfony/symfony/issues/17603"},"comments":{"href":"https://api.github.com/repos/symfony/symfony/issues/17603/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17603/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony/pulls/17603/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony/statuses/6fb0978773715a8cc50e4fb661aca950729b3774"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":6,"review_comments":6,"commits":1,"additions":197,"deletions":0,"changed_files":5}}