armygrad
1 year agoContributor
Boolean check
Hi All I'm almost there, i need to check that a json response contains 1234 within an array, and return true. and if it doesn't return false. boolean check = "FAIL"
if (response.contains("1234") ...
Json response
Fri Feb 23 15:30:16 GMT 2024: INFO: {"Area":{"2024-02-26":{"6395":[{"appt":1234,"Type":"ANY","Date":"26T08:30:00","Time":"08:30","DisplayDate":"26
Please find the sample code / groovy documentation here to read the json.
If you still have issue, provide the valid json (no need to have the data, but structure is important so that correct path can be suggested.