{"action":"created","issue":{"url":"https://api.github.com/repos/slimphp/Slim/issues/1813","repository_url":"https://api.github.com/repos/slimphp/Slim","labels_url":"https://api.github.com/repos/slimphp/Slim/issues/1813/labels{/name}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/1813/comments","events_url":"https://api.github.com/repos/slimphp/Slim/issues/1813/events","html_url":"https://github.com/slimphp/Slim/issues/1813","id":140125051,"number":1813,"title":"Slim 3: Add JSON hijacking prevention","user":{"login":"afk","id":120251,"avatar_url":"https://avatars.githubusercontent.com/u/120251?v=3","gravatar_id":"","url":"https://api.github.com/users/afk","html_url":"https://github.com/afk","followers_url":"https://api.github.com/users/afk/followers","following_url":"https://api.github.com/users/afk/following{/other_user}","gists_url":"https://api.github.com/users/afk/gists{/gist_id}","starred_url":"https://api.github.com/users/afk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afk/subscriptions","organizations_url":"https://api.github.com/users/afk/orgs","repos_url":"https://api.github.com/users/afk/repos","events_url":"https://api.github.com/users/afk/events{/privacy}","received_events_url":"https://api.github.com/users/afk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-11T08:49:45Z","updated_at":"2016-03-11T09:13:38Z","closed_at":"2016-03-11T09:13:38Z","body":"Extend `Slim\\Http\\Response->withJson()` to [prevent JSON hijacking](http://stackoverflow.com/questions/2669690/why-does-google-prepend-while1-to-their-json-responses).\r\n\r\nI would submit a PR if this is considered reasonable,"},"comment":{"url":"https://api.github.com/repos/slimphp/Slim/issues/comments/195279565","html_url":"https://github.com/slimphp/Slim/issues/1813#issuecomment-195279565","issue_url":"https://api.github.com/repos/slimphp/Slim/issues/1813","id":195279565,"user":{"login":"akrabat","id":33135,"avatar_url":"https://avatars.githubusercontent.com/u/33135?v=3","gravatar_id":"","url":"https://api.github.com/users/akrabat","html_url":"https://github.com/akrabat","followers_url":"https://api.github.com/users/akrabat/followers","following_url":"https://api.github.com/users/akrabat/following{/other_user}","gists_url":"https://api.github.com/users/akrabat/gists{/gist_id}","starred_url":"https://api.github.com/users/akrabat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akrabat/subscriptions","organizations_url":"https://api.github.com/users/akrabat/orgs","repos_url":"https://api.github.com/users/akrabat/repos","events_url":"https://api.github.com/users/akrabat/events{/privacy}","received_events_url":"https://api.github.com/users/akrabat/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T09:13:38Z","updated_at":"2016-03-11T09:13:38Z","body":"I agree."}}