I'm writing an automation test. I've got an endpoint URL 'https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1'
when I go onto this endpoint there is text that is printed.
Is there any way in my test I can validate some of the data within the text that is printed. For example, validate when I go to the endpoint remaining is 52.
{
"deck_id":"qzpre4zxokj7",
"shuffled":true,
"remaining":52,
"success":true
}