AnsweredAssumed Answered

extracting json errors in lisa variables

Question asked by ellma10 Employee on Jun 22, 2015
Latest reply on Jun 24, 2015 by ellma10

In DevTest when using a JSON filter, if you enter in an expression path that doesn't evaluate (ex. an expression for getting a count and the path doesn't exist), the JSON evaluated return/response will be an error message.


This error message is stored in the Lisa variable.  Is there a way to literally test for this error message and replace it with a default value (i.e. 0) outside of writing a custom java step to interrogate the variable and replace it?  Or is there a way to have the JSON evaluation not return the error message but instead a desired default value?