Search Scriptable API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2023 03:00 AM
Hi there,
Is there a way to print the entire searchResults object returned by Search Scriptable API as a JSON?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2023 04:39 AM
@Harshit Sharma1 You can try to print using JSON.stringify(searchResults); method whatever result body you are getting
var responseBody = response.getBody(); // Parse the response body as a JSON object
var searchResults = JSON.parse(responseBody); // Convert the searchResults object to a JSON string
var jsonResults = JSON.stringify(searchResults);
Please mark the answer correct/helpful based on Impact.
Regards,
RJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 10:06 PM
Try