JSONPath Expression
Cisco Unified Call Studio includes a new utility that allows you to use JSONPath expressions in JavaScript to return the values from the JSON(JavaScript Object Notation).
importPackage(com.audium.server.cvpUtil);
JSONPathUtil.eval(String inputJSON , String expression);
Parameter |
Description |
---|---|
importPackage(com.audium.server.cvpUtil) |
This parameter imports the package to find the XPath values. |
JSONpathUtil.eval(String inputJSON , String expression) |
This parameter returns the value from the JSON document based on the JSONPath expression provided. |
importPackage(com.audium.server.cvpUtil);
var inputJSON = {Data.Element.Rest_Client_01.response_body};
JSONPathUtil.eval(String inputJSON , String expression);