% NORM-JSON(1) Version 3.2.0 | Scripts Documentation % Georg Voell - georg.voell@standby.cloud % (c)2024 Standby.cloud NAME ==== **norm-json** - (BASH Script) Normalize JSON items and pretty print them. SYNOPSIS ======== | **norm-json** \[_options_] DESCRIPTION =========== Normalize JSON items 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 -i, \--import _string_          : Read from a file (_string_ = filename) - if not specified, read from stdin. -s, \--select _number_          : Select only the nth JSON item (starting with 1 for the first item). EXIT CODES ========== 01: Unknown or wrong parameter. 02: No **jq** or wrong version of **jq**. This script needs **jq** to format "json". 03: No input or empty file. 04: JSON file contains less then 2 lines. 05: Error in JSON file. 06: JSON file doesn't contain specified item. 99: User interrupt.