I am working with the Evaluate JSON path Assertion and have set the input for the assertion as "Other message variable", but the assertion is not picking up the value from the variable and the policy seems to be failing.
Can you please let me know what might be going wrong?
I tried using the ''Test Input'' feature and it seemed to be giving the right output when i put the actual string, but the same doesnt seem to be getting picked up from the variable.
Does anyone have an idea if we can use more than one expression in the Evaluate JSON Path assertion? I am trying to store the username and password in the Map assertion and then using the output variable in Evaluate JSON Path assertion to extract the values of username and password.
Unfortunately it seems as if i can extract only one value at a time. Is there any way i can do both?
Is the variable you are trying to use of 'Message' type? I think that assertion requires a 'Message' as opposed to a 'String'.
Thanks Doyle! I noticed that later.. Used a message variable now and i seems to be working. Appreciate the prompt reply
The content type must also be set to "application/json"
This was the issue for me.... My content type was set to text/html... Thanks for the tip!