My input contains the following:
{
"headers": {
...
},
"body": {
"RequestInfo": {
...
,
"Identificator": null
}
}
<filter regex="false" source="boolean($ctx:Identificator)"> - check if it exists (even when it's null, it is still considered existing).
I am developing a service where I need to verify the value of Identificator.
In this scenario, the value is null. Can anybody provide me with an example in xpath on how to perform the check considering that it's null and not a valid value?
EDIT: Could someone demonstrate in JavaScript how I can retrieve the identificator's value, as the current approach doesn't seem to work?
EDIT2: The JavaScript solution works, however, in WSO2, a null identificator is treated as a string so ctx:Identificator='null' also functions as expected.