- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 04:46 AM
Hi All
new JSON().encode is not in scoped app script include, can anyone suggest any other alternative for the same.
Thanks,
Uma
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 04:50 AM
Hi Uma,
Here is the alternative. you need to use the global.JSON()
Try the below one and let me know the outcome.
var sampleObj = {
color: "blue",
height: "tall"
};
var sampleJSON = new global.JSON().encode(sampleObj);
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 04:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 04:50 AM
Hi Uma,
Here is the alternative. you need to use the global.JSON()
Try the below one and let me know the outcome.
var sampleObj = {
color: "blue",
height: "tall"
};
var sampleJSON = new global.JSON().encode(sampleObj);
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 05:33 AM
did i reply something different ?