{"action":"closed","issue":{"url":"https://api.github.com/repos/jayway/rest-assured/issues/131","labels_url":"https://api.github.com/repos/jayway/rest-assured/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/jayway/rest-assured/issues/131/comments","events_url":"https://api.github.com/repos/jayway/rest-assured/issues/131/events","html_url":"https://github.com/jayway/rest-assured/issues/131","id":96117564,"number":131,"title":"Add JSONP support","user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jayway/rest-assured/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/jayway/rest-assured/labels/Duplicate","name":"Duplicate","color":"fef2c0"},{"url":"https://api.github.com/repos/jayway/rest-assured/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/jayway/rest-assured/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-20T17:37:20Z","updated_at":"2015-07-20T17:38:58Z","closed_at":"2015-07-20T17:38:58Z","body":"```\nE.g. \n\nexpect().body(\"root.child\", equalTo(\"x\")).when(\"/jsonp?callback=y\");\n\nBut perhaps it's better/easier to do something like:\n\nexpect().jsonp(\"callback\", \"y\").body(\"root.child\", \nequalTo(\"x\")).when().get(\"/jsonp\");\n\nor:\n\nexpect().jsonp(\"callback\").body(\"root.child\", \nequalTo(\"x\")).when().get(\"/jsonp\"); \n\nwhich should generate a random method-name.\n\nIt should also be possible to set it as default:\n\nRestAssured.expectedParser = jsonp(\"callback\", \"y\");\nRestAssured.expectedParser = jsonp(\"callback\");\nRestAssured.expectedParser = auto(); // Default\n\nThere should also be a JsonpPath that simply extends JsonPath and removes \nmethod call.\n```\n\nOriginal issue reported on code.google.com by `johan.ha...@gmail.com` on 10 Mar 2011 at 2:00"}}