% BROWSE-JSON(1) Version 3.1.0 | Scripts Documentation % Georg Voell - georg.voell@standby.cloud % (c)2023 Standby.cloud NAME ==== **browse-json** - (BASH Script) Browse through JSON records and print all or single values. SYNOPSIS ======== | **browse-json** \[_options_] \[_key_] DESCRIPTION =========== Browse through JSON records and print all or single values. Options ------- '-h, --help' : Displays helptext. '-v, \--version'          : Displays the version of the script. '-q, \--quiet'          : Just write error message to LOGFILE. '-r, \--raw'          : Don't convert hyphens e.g. lifecycle-state to lifecycleState '-s, \--select' _number_          : Select only the nth JSON record (starting with 0 for the first record). '-o, \--output' _string_          : Output format: _string_ can be "plain", "keys" or "json". '-f, \--filename' _string_         : JSON file to read from - if not specified, read from stdin. Key ------- This script can be called with an optional parameter "key" (otherwise it prints out all keys). EXIT CODES ========== 01: Unknown or wrong parameter. 02: No **jq** or wrong version of **jq**. This script needs **jq** to format "json". 03: Error in JSON file or no input. 04: Key not found. 99: User interrupt.