["[object Object]"] how to conver this datra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 04:22 AM
["[object Object]"]
i am getting the data inthis format, now how can i convert in to sting or values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 04:43 AM
Instead of using toString() you need to use JSON.stringify(object)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 04:49 AM
I assume you are talking about API response which you are getting
If it's REST API response then you can use JSON.stringify(object)
share your complete script
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 04:57 AM
@hemantnh you can always use JSON.stringify(object) to convert object into string. I believe, you must have already searched for this solution before posting question here. So, please let us know more details if we can help you further. on actual scenario.
Regards,
Abhijit
ServiceNow MVP