Get the value of request JSON node or nodes in text format. Function uses JSONPath expressions for JSON filtering – see some examples and basic description here.
Text
- Specifies the JSONPath expression for filtering JSON node or nodes.Text
Value of the request JSON node or nodes in text or JSON format.
//Returns text in name node
NodeValue := APIScriptRWU.GET_REQUEST_VALUE_BY_JPATH('$.name');
//Returns id of the first customer
NodeValue := APIScriptRWU.GET_REQUEST_VALUE_BY_JPATH('$.customer[0].id');
//Returns second phone of the first customer
NodeValue := APIScriptRWU.GET_REQUEST_VALUE_BY_JPATH('$.customer[0].phones[1]');