Hi!
For several days I can’t understand where I made a mistake
Given:
[{"{#NAME}":"BULL","{#VALUE}":"98.03"},{"{#NAME} ":" BILL","{#VALUE}":"98.32"}]
How get VALUE by NAME ? I use:
$.[?(@.NAME == '{#NAME}' )].VALUE,
but Zabbix gives an error message:
"1. Failed: cannot extract value from json by path "$.[?(@.NAME == 'BILL' )].VALUE": no data matches the specified path"
For several days I can’t understand where I made a mistake
Given:
[{"{#NAME}":"BULL","{#VALUE}":"98.03"},{"{#NAME} ":" BILL","{#VALUE}":"98.32"}]
How get VALUE by NAME ? I use:
$.[?(@.NAME == '{#NAME}' )].VALUE,
but Zabbix gives an error message:
"1. Failed: cannot extract value from json by path "$.[?(@.NAME == 'BILL' )].VALUE": no data matches the specified path"