Unable to dot walk on rest response body
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2023 02:27 AM - edited ‎07-20-2023 03:25 AM
aaa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2023 03:03 AM
Hi ,
Could you please try something like this -
var response = r.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
var responseBodyJSON = JSON.parse(responseBody);
var client = responseBodyJSON.items.client;
for(var i = 0 ; i<responseBodyJSON.items.client.length;i++){
gs.info(responseBodyJSON.items.client.length[i].clientid) // If you want client ID
}
Please mark this response as correct or helpful if it assisted you with your question.
Regards,
Harshal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2023 03:19 AM
Hi @Popat420 - Could you please try adding logs and could you share what is being returned ?