- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2016 12:57 AM
Hello,
I have the following issue. I have a table with a field called "json_output". The user must filled it with valid json and then I want to process this data in a workflow script. So far, I've read about
var parser = new JSONParser();
var blades = parser.parse(current.json_output.toString());
But it seems it doesn't work in server-side scripts. When the script is executed it outputs the following message:
JSONParser undefined, maybe missing global qualifier
Can anybody tell me how to use JSON in workflow script?
Thanks,
Alexander
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2016 02:15 AM
You can also use JSON method to decode your json_output. See below,
var json = new global.JSON();
var blades = new JSON().decode(current.json_output.toString());
gs.log('keyName1 - ' + blades.keyName1);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2016 02:15 AM
You can also use JSON method to decode your json_output. See below,
var json = new global.JSON();
var blades = new JSON().decode(current.json_output.toString());
gs.log('keyName1 - ' + blades.keyName1);