I would like to return the whole JSON if a condition is matched.
Test Json:
{
"EVENTID": 2624367601,
"RECEIVERNAME": "CM.MYHR",
"SENDERNAME": "CM.EIS.CF1",
"AGREEMENTNAME": null
}
I keep trying in https://jsonpath.curiousconcept.com, but couldn't figure it out. I thought the following expression should work, but it always return empty.
$.[?(@.SENDERNAME==CM.EIS.CF1)]
Please help.