My input json looks like below:
I need to extract value when name="bar"
I'm trying to use as the JSONPath filter:
and because it does not work looks like syntax of my filter is wrong.
Someone can help?
Other thing is that looks like now zabbix 4.2.x does not provides anything like test page for testing filters with some inputs and any problems with filters are not reported in logs.
Is it anywhere complete documentation of the JSONPath syntax used by zabbix?
Looks like it is different than that one used for example by jq.
Code:
[
{
"name": "foo",
"value": "value1"
},
{
"name": "bar",
"value": "value2"
}
]
I'm trying to use as the JSONPath filter:
Code:
$[?(@.name=='bar')].value
Someone can help?
Other thing is that looks like now zabbix 4.2.x does not provides anything like test page for testing filters with some inputs and any problems with filters are not reported in logs.
Is it anywhere complete documentation of the JSONPath syntax used by zabbix?
Looks like it is different than that one used for example by jq.
Comment