- Joined
- Sep 22, 2024
- Messages
- 18
- Reaction score
- 8
Hi all,
im trying to make a simple JSON Response content checker but i cant get it work with the in built fonction "CONTAINS"
I made a Get request on an api , and the response can be :
Or can be :
i need to make differents things for each Error , i try to check the "text" with the inbuild fonction "contains" if there is an Error 1 or Error 2 in my reponse.
But it dosent work.
Any ideas ?
Regards,
im trying to make a simple JSON Response content checker but i cant get it work with the in built fonction "CONTAINS"
I made a Get request on an api , and the response can be :
Code:
"statusCode": 404,
"statusCodeValue": "NOT_FOUND",
"errors":[
{
"id": "202409201516",
"parameters":{},
"code": "ERROR_1",
"title": "unknown",
"detail": "Error 1",
"lstErreurs":["Error 1"]
}
]
Or can be :
Code:
"statusCode": 404,
"statusCodeValue": "NOT_FOUND",
"errors":[
{
"id": "202409201516",
"parameters":{},
"code": "ERROR_2",
"title": "unknown",
"detail": "Error 2",
"lstErreurs":["Error 2"]
}
]
i need to make differents things for each Error , i try to check the "text" with the inbuild fonction "contains" if there is an Error 1 or Error 2 in my reponse.
But it dosent work.
Any ideas ?
Regards,