check_json
check_json copied to clipboard
I'm too stupid to do the simplest lookups
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?
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.
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
I have the same problem
FYI use quotes
-a '{"entries"}->{"database-Check"}->{"status"}'