ServiceNow JSON Parse

JSON Example: Inbound Action Processing

Inbound Action Script Example:

// Build the JSON Object
var dataArray = {
incident:current.number + ”,

// Process an event and pass through the encoded JSON Object
gs.eventQueue(‘EVENT_NAME’, current, new global.JSON().encode(dataArray), gs.getUserID());

Script Action Example

//JSONParser Script Include
var parser = new JSONParser();
var parsed = parser.parse(event.parm1);

Then call the values passed with parsed.VALUE

For Example: parsed.incident,