{"action":"created","issue":{"url":"https://api.github.com/repos/underlandxyz/fb-sprint-2-4/issues/7","repository_url":"https://api.github.com/repos/underlandxyz/fb-sprint-2-4","labels_url":"https://api.github.com/repos/underlandxyz/fb-sprint-2-4/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/underlandxyz/fb-sprint-2-4/issues/7/comments","events_url":"https://api.github.com/repos/underlandxyz/fb-sprint-2-4/issues/7/events","html_url":"https://github.com/underlandxyz/fb-sprint-2-4/issues/7","id":367198691,"node_id":"MDU6SXNzdWUzNjcxOTg2OTE=","number":7,"title":"Checking if JSON array in response contains POJO","user":{"login":"Angus-Young","id":4992926,"node_id":"MDQ6VXNlcjQ5OTI5MjY=","avatar_url":"https://avatars1.githubusercontent.com/u/4992926?v=4","gravatar_id":"","url":"https://api.github.com/users/Angus-Young","html_url":"https://github.com/Angus-Young","followers_url":"https://api.github.com/users/Angus-Young/followers","following_url":"https://api.github.com/users/Angus-Young/following{/other_user}","gists_url":"https://api.github.com/users/Angus-Young/gists{/gist_id}","starred_url":"https://api.github.com/users/Angus-Young/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Angus-Young/subscriptions","organizations_url":"https://api.github.com/users/Angus-Young/orgs","repos_url":"https://api.github.com/users/Angus-Young/repos","events_url":"https://api.github.com/users/Angus-Young/events{/privacy}","received_events_url":"https://api.github.com/users/Angus-Young/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-05T12:54:19Z","updated_at":"2018-10-05T13:39:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"In RestAssured, how can I use their builder to check that an array contained within a JSON response contains a specific java object. "},"comment":{"url":"https://api.github.com/repos/underlandxyz/fb-sprint-2-4/issues/comments/427369435","html_url":"https://github.com/underlandxyz/fb-sprint-2-4/issues/7#issuecomment-427369435","issue_url":"https://api.github.com/repos/underlandxyz/fb-sprint-2-4/issues/7","id":427369435,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzM2OTQzNQ==","user":{"login":"Angus-Young","id":4992926,"node_id":"MDQ6VXNlcjQ5OTI5MjY=","avatar_url":"https://avatars1.githubusercontent.com/u/4992926?v=4","gravatar_id":"","url":"https://api.github.com/users/Angus-Young","html_url":"https://github.com/Angus-Young","followers_url":"https://api.github.com/users/Angus-Young/followers","following_url":"https://api.github.com/users/Angus-Young/following{/other_user}","gists_url":"https://api.github.com/users/Angus-Young/gists{/gist_id}","starred_url":"https://api.github.com/users/Angus-Young/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Angus-Young/subscriptions","organizations_url":"https://api.github.com/users/Angus-Young/orgs","repos_url":"https://api.github.com/users/Angus-Young/repos","events_url":"https://api.github.com/users/Angus-Young/events{/privacy}","received_events_url":"https://api.github.com/users/Angus-Young/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T13:39:58Z","updated_at":"2018-10-05T13:39:58Z","author_association":"CONTRIBUTOR","body":"@stdlibdoh \r\n\r\n\r\n    public void find_book_by_id_existing() throws Exception {\r\n        Book book = new Book(1, \"Ziggy Stardust\", \"A Ballsy Orignal Work\", new Date());\r\n        bookRepository.save(book);\r\n\r\n        given().\r\n        when().\r\n                get(\"/book/find?id=\" + book.getId()).\r\n        then().\r\n                assertThat().\r\n                contentType(ContentType.JSON).\r\n                statusCode(200).\r\n                body(\"size()\", is(1));\r\n\r\n        // should also check that returned json array contains the expected book\r\n\r\n    }"}}
{"actor":{"display_login":"Angus-Young"}}