check_json icon indicating copy to clipboard operation
check_json copied to clipboard

I'm too stupid to do the simplest lookups

Open T-One opened this issue 7 years ago • 4 comments

Hello,

looks like i'm really stupid because all i get is "no value received" or a "Check JSON status API OK" but no values at all....

This is a JSON Response i want to check:

{ "versionInfo": [ { "versionString": "1.1" ,"majorVersion": "1" ,"minorVersion": "1" } ] }

i want to check the majorVersion value.

./check_json.pl --url "https://user:pw@host/pathtojason" --attributes '{versionInfo}->{majorVersion}' --ignoressl

always ends in a "Check JSON status API UNKNOWN - No value received"

Whats up with this?

T-One avatar Jul 28 '17 13:07 T-One

I'm in the same boat. The --attributes syntax is either poorly documented or broken. REALLY needs examples of the json data, the -a syntax and exactly what it returns.

bchabot avatar Aug 30 '17 19:08 bchabot

Here's an even simpler issue. the JSON reply is the version number of our installed software: [ '7.4.0' ];

I use -a "" in the command line.... since there is nothing specific to request...

And it still gives me:

Check JSON status API UNKNOWN

bchabot avatar Aug 30 '17 19:08 bchabot

I have the same problem

simpleuser99 avatar Feb 15 '18 16:02 simpleuser99

FYI use quotes -a '{"entries"}->{"database-Check"}->{"status"}'

mkayontour avatar Aug 26 '20 12:08 mkayontour