Webservice JSONPATH error parsing non-existing Object

Document ID : KB000121439
Last Modified Date : 20/12/2018
Show Technical Document Details
Issue:
Currently XPath and JSONPATH are not the same. XPath Parsing sets Variable to empty, if the string does not exist. 
JSONPath: "java.lang.Exception: Response query parse error: There was an error executing the query to retrieve variables from the response." 

If using a expression like $.store.book[1].title to assign a Value to a Variable while the Object Title does not exist the following error is written to the 

2018-07-20 13:30:41 An error occured - processing the response query 
2018-07-20 13:30:41 Response query parse error: There was an error executing the query to retrieve variables from the response. 
2018-07-20 13:30:41 First part of the response being processed:{ "store": { 
2018-07-20 13:30:41 "bo 
2018-07-20 13:30:41 Error from the execution of the query: 
2018-07-20 13:30:41 ERROR Cannot execute query. 

Comparing this to the result of XPATH: /store/book[1]/title, the Variable is assigned a null value.
Environment:
Agent RA Webservice REST 3.3
Resolution:
The problem has been corrected in following version of CA Automic Workload Automation component:
- RA Web Service REST Agent version 4.4.2 - Available