Ad Widget

Collapse

How to get value in JSONPath?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • depak
    Junior Member
    • Jan 2020
    • 11

    #1

    How to get value in JSONPath?

    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"
Working...