{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/59139906","id":59139906,"diff_hunk":"@@ -778,6 +778,20 @@ There are also special classes to make certain kinds of responses easier:\n   :class:`Symfony\\\\Component\\\\HttpFoundation\\\\StreamedResponse`.\n   See :ref:`streaming-response`.\n \n+JSON helper\n+~~~~~~~~~~~\n+\n+You can simplify sending JSON response with\n+:method:`Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\Controller::json`\n+helper::","path":"book/controller.rst","position":9,"original_position":9,"commit_id":"9cda5069925dedf2ded90390bc4f0ae4719878fa","original_commit_id":"9cda5069925dedf2ded90390bc4f0ae4719878fa","user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"body":"I miss here some information about the argument/arguments expected by this method.","created_at":"2016-04-10T19:44:18Z","updated_at":"2016-04-10T19:44:18Z","html_url":"https://github.com/symfony/symfony-docs/pull/6453#discussion_r59139906","pull_request_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/6453","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/59139906"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/6453#discussion_r59139906"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/6453"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/6453","id":65920479,"html_url":"https://github.com/symfony/symfony-docs/pull/6453","diff_url":"https://github.com/symfony/symfony-docs/pull/6453.diff","patch_url":"https://github.com/symfony/symfony-docs/pull/6453.patch","issue_url":"https://api.github.com/repos/symfony/symfony-docs/issues/6453","number":6453,"state":"open","locked":false,"title":"Added docs for JSON helper","user":{"login":"dfridrich","id":3758421,"avatar_url":"https://avatars.githubusercontent.com/u/3758421?v=3","gravatar_id":"","url":"https://api.github.com/users/dfridrich","html_url":"https://github.com/dfridrich","followers_url":"https://api.github.com/users/dfridrich/followers","following_url":"https://api.github.com/users/dfridrich/following{/other_user}","gists_url":"https://api.github.com/users/dfridrich/gists{/gist_id}","starred_url":"https://api.github.com/users/dfridrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfridrich/subscriptions","organizations_url":"https://api.github.com/users/dfridrich/orgs","repos_url":"https://api.github.com/users/dfridrich/repos","events_url":"https://api.github.com/users/dfridrich/events{/privacy}","received_events_url":"https://api.github.com/users/dfridrich/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Doc fix?      | yes\r\n| New docs?     | no\r\n| Applies to    | 3.1\r\n| Fixed tickets | #6425","created_at":"2016-04-10T19:43:12Z","updated_at":"2016-04-10T19:44:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cf96d0973fe46382dab65d064497ecf92b5d9a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/6453/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/6453/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/issues/6453/comments","statuses_url":"https://api.github.com/repos/symfony/symfony-docs/statuses/9cda5069925dedf2ded90390bc4f0ae4719878fa","head":{"label":"dfridrich:json_helper","ref":"json_helper","sha":"9cda5069925dedf2ded90390bc4f0ae4719878fa","user":{"login":"dfridrich","id":3758421,"avatar_url":"https://avatars.githubusercontent.com/u/3758421?v=3","gravatar_id":"","url":"https://api.github.com/users/dfridrich","html_url":"https://github.com/dfridrich","followers_url":"https://api.github.com/users/dfridrich/followers","following_url":"https://api.github.com/users/dfridrich/following{/other_user}","gists_url":"https://api.github.com/users/dfridrich/gists{/gist_id}","starred_url":"https://api.github.com/users/dfridrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfridrich/subscriptions","organizations_url":"https://api.github.com/users/dfridrich/orgs","repos_url":"https://api.github.com/users/dfridrich/repos","events_url":"https://api.github.com/users/dfridrich/events{/privacy}","received_events_url":"https://api.github.com/users/dfridrich/received_events","type":"User","site_admin":false},"repo":{"id":55917254,"name":"symfony-docs","full_name":"dfridrich/symfony-docs","owner":{"login":"dfridrich","id":3758421,"avatar_url":"https://avatars.githubusercontent.com/u/3758421?v=3","gravatar_id":"","url":"https://api.github.com/users/dfridrich","html_url":"https://github.com/dfridrich","followers_url":"https://api.github.com/users/dfridrich/followers","following_url":"https://api.github.com/users/dfridrich/following{/other_user}","gists_url":"https://api.github.com/users/dfridrich/gists{/gist_id}","starred_url":"https://api.github.com/users/dfridrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfridrich/subscriptions","organizations_url":"https://api.github.com/users/dfridrich/orgs","repos_url":"https://api.github.com/users/dfridrich/repos","events_url":"https://api.github.com/users/dfridrich/events{/privacy}","received_events_url":"https://api.github.com/users/dfridrich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dfridrich/symfony-docs","description":"The Symfony documentation","fork":true,"url":"https://api.github.com/repos/dfridrich/symfony-docs","forks_url":"https://api.github.com/repos/dfridrich/symfony-docs/forks","keys_url":"https://api.github.com/repos/dfridrich/symfony-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dfridrich/symfony-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dfridrich/symfony-docs/teams","hooks_url":"https://api.github.com/repos/dfridrich/symfony-docs/hooks","issue_events_url":"https://api.github.com/repos/dfridrich/symfony-docs/issues/events{/number}","events_url":"https://api.github.com/repos/dfridrich/symfony-docs/events","assignees_url":"https://api.github.com/repos/dfridrich/symfony-docs/assignees{/user}","branches_url":"https://api.github.com/repos/dfridrich/symfony-docs/branches{/branch}","tags_url":"https://api.github.com/repos/dfridrich/symfony-docs/tags","blobs_url":"https://api.github.com/repos/dfridrich/symfony-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dfridrich/symfony-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dfridrich/symfony-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dfridrich/symfony-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dfridrich/symfony-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/dfridrich/symfony-docs/languages","stargazers_url":"https://api.github.com/repos/dfridrich/symfony-docs/stargazers","contributors_url":"https://api.github.com/repos/dfridrich/symfony-docs/contributors","subscribers_url":"https://api.github.com/repos/dfridrich/symfony-docs/subscribers","subscription_url":"https://api.github.com/repos/dfridrich/symfony-docs/subscription","commits_url":"https://api.github.com/repos/dfridrich/symfony-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dfridrich/symfony-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dfridrich/symfony-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dfridrich/symfony-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dfridrich/symfony-docs/contents/{+path}","compare_url":"https://api.github.com/repos/dfridrich/symfony-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dfridrich/symfony-docs/merges","archive_url":"https://api.github.com/repos/dfridrich/symfony-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dfridrich/symfony-docs/downloads","issues_url":"https://api.github.com/repos/dfridrich/symfony-docs/issues{/number}","pulls_url":"https://api.github.com/repos/dfridrich/symfony-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/dfridrich/symfony-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/dfridrich/symfony-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dfridrich/symfony-docs/labels{/name}","releases_url":"https://api.github.com/repos/dfridrich/symfony-docs/releases{/id}","deployments_url":"https://api.github.com/repos/dfridrich/symfony-docs/deployments","created_at":"2016-04-10T19:07:22Z","updated_at":"2016-04-10T19:07:26Z","pushed_at":"2016-04-10T19:38:47Z","git_url":"git://github.com/dfridrich/symfony-docs.git","ssh_url":"git@github.com:dfridrich/symfony-docs.git","clone_url":"https://github.com/dfridrich/symfony-docs.git","svn_url":"https://github.com/dfridrich/symfony-docs","homepage":"http://symfony.com/doc","size":34153,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"master"}},"base":{"label":"symfony:master","ref":"master","sha":"bdacf537bfee86d049238ca1354963e8fbdb7601","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":521583,"name":"symfony-docs","full_name":"symfony/symfony-docs","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-docs","description":"The Symfony documentation","fork":false,"url":"https://api.github.com/repos/symfony/symfony-docs","forks_url":"https://api.github.com/repos/symfony/symfony-docs/forks","keys_url":"https://api.github.com/repos/symfony/symfony-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony-docs/teams","hooks_url":"https://api.github.com/repos/symfony/symfony-docs/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony-docs/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony-docs/events","assignees_url":"https://api.github.com/repos/symfony/symfony-docs/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony-docs/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony-docs/tags","blobs_url":"https://api.github.com/repos/symfony/symfony-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony-docs/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony-docs/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony-docs/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony-docs/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony-docs/subscription","commits_url":"https://api.github.com/repos/symfony/symfony-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony-docs/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony-docs/merges","archive_url":"https://api.github.com/repos/symfony/symfony-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony-docs/downloads","issues_url":"https://api.github.com/repos/symfony/symfony-docs/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony-docs/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony-docs/releases{/id}","deployments_url":"https://api.github.com/repos/symfony/symfony-docs/deployments","created_at":"2010-02-17T08:43:51Z","updated_at":"2016-04-04T03:56:51Z","pushed_at":"2016-04-10T19:43:13Z","git_url":"git://github.com/symfony/symfony-docs.git","ssh_url":"git@github.com:symfony/symfony-docs.git","clone_url":"https://github.com/symfony/symfony-docs.git","svn_url":"https://github.com/symfony/symfony-docs","homepage":"http://symfony.com/doc","size":54176,"stargazers_count":1090,"watchers_count":1090,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":2356,"mirror_url":null,"open_issues_count":306,"forks":2356,"open_issues":306,"watchers":1090,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/6453"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/6453"},"issue":{"href":"https://api.github.com/repos/symfony/symfony-docs/issues/6453"},"comments":{"href":"https://api.github.com/repos/symfony/symfony-docs/issues/6453/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/6453/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/6453/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony-docs/statuses/9cda5069925dedf2ded90390bc4f0ae4719878fa"}}}}