0

Given:

 [{"{#NAME}":"BULL","{#VALUE}":"98.03"},{"{#NAME}":"BILL","{#VALUE}":"98.32"}]

How get VALUE by NAME ?

My code didn't working :(

$['{#NAME}']['VALUE']
depak
  • 128
  • 1
  • 9
  • 1
    Hello and welcome to StackOverflow. Could you please clarify the question and specify the language you are using? Also, please add a snippet of the code and the error you got! – Simone Zabberoni Apr 03 '20 at 14:10

1 Answers1

0

Assuming you are using the JSONPath preprocessing, the correct filter is $['{#NAME}'].

You can use https://jsonpath.com/ to do your tests since Zabbix doesn't have a similar feature (yet).

Iron Bishop
  • 1,749
  • 1
  • 7
  • 16