parseResponse.js action used in OTS package
//Input: string - Response in a JSON string
//Output: Any - Return the parsed object
//Parse the json string
var jsonResponse = JSON.parse(response);
//loop through and print out each key and value
for(var i in jsonResponse) {
System.log(i + ": " + jsonResponse[i]);
}
//return the object
return jsonResponse;