{
"success": true,
"data": {
"count": 0,
"list": []
}
}
I have a json data where I want to check count and print it's value
First of all I am using jsonpath() function because it's rest-assured and putting response inside it
ArrayList a = response.jsonPath().get("data");
Above code is giving an error :
java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.ArrayList