{"action":"created","issue":{"url":"https://api.github.com/repos/jeremyevans/roda/issues/26","labels_url":"https://api.github.com/repos/jeremyevans/roda/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/jeremyevans/roda/issues/26/comments","events_url":"https://api.github.com/repos/jeremyevans/roda/issues/26/events","html_url":"https://github.com/jeremyevans/roda/pull/26","id":72027573,"number":26,"title":"Add :include_request option for json plugins","user":{"login":"janko-m","id":795488,"avatar_url":"https://avatars.githubusercontent.com/u/795488?v=3","gravatar_id":"","url":"https://api.github.com/users/janko-m","html_url":"https://github.com/janko-m","followers_url":"https://api.github.com/users/janko-m/followers","following_url":"https://api.github.com/users/janko-m/following{/other_user}","gists_url":"https://api.github.com/users/janko-m/gists{/gist_id}","starred_url":"https://api.github.com/users/janko-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janko-m/subscriptions","organizations_url":"https://api.github.com/users/janko-m/orgs","repos_url":"https://api.github.com/users/janko-m/repos","events_url":"https://api.github.com/users/janko-m/events{/privacy}","received_events_url":"https://api.github.com/users/janko-m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-30T00:47:36Z","updated_at":"2015-04-30T00:51:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jeremyevans/roda/pulls/26","html_url":"https://github.com/jeremyevans/roda/pull/26","diff_url":"https://github.com/jeremyevans/roda/pull/26.diff","patch_url":"https://github.com/jeremyevans/roda/pull/26.patch"},"body":"When using the json plugin, sometimes we want to serialize the object differently depending on the request headers or request parameters. For example, we might want to give the client the ability to specify which post associations they want returned, with a request like /posts?include=author,comments.\n\nIf :include_request=>true is passed to the request, the request object will be passed as the second argument when calling the serializer. We add it to the json_parser plugin as well for consistency."},"comment":{"url":"https://api.github.com/repos/jeremyevans/roda/issues/comments/97622748","html_url":"https://github.com/jeremyevans/roda/pull/26#issuecomment-97622748","issue_url":"https://api.github.com/repos/jeremyevans/roda/issues/26","id":97622748,"user":{"login":"jeremyevans","id":3846,"avatar_url":"https://avatars.githubusercontent.com/u/3846?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyevans","html_url":"https://github.com/jeremyevans","followers_url":"https://api.github.com/users/jeremyevans/followers","following_url":"https://api.github.com/users/jeremyevans/following{/other_user}","gists_url":"https://api.github.com/users/jeremyevans/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyevans/subscriptions","organizations_url":"https://api.github.com/users/jeremyevans/orgs","repos_url":"https://api.github.com/users/jeremyevans/repos","events_url":"https://api.github.com/users/jeremyevans/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyevans/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T00:51:30Z","updated_at":"2015-04-30T00:51:30Z","body":"This looks good, I'll merge it soon.  Thanks for the patch!"}}