% NORM-JSON(1) Version 3.1.1 | Scripts Documentation % Georg Voell - georg.voell@standby.cloud % (c)2023 Standby.cloud NAME ==== **norm-json** - (BASH Script) Normalize JSON records and pretty print them. SYNOPSIS ======== | **norm-json** \[_options_] DESCRIPTION =========== Normalize JSON records and pretty print them. 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). '-f, \--filename' _string_         : JSON file to read from - if not specified, read from stdin. 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: JSON file contains less then 2 lines. 05: JSON file doesn't contain records. 06: JSON file doesn't contain specified record. 99: User interrupt.