% NORM-JSON(1) Version 3.0.0 | Scripts Documentation % Georg Voell - georg.voell@oracle.com % (c)2021 Oracle 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. '-r, \--raw'          : Don't convert hyphens e.g. lifecycle-state to lifecycleState '-n, \--number' _number_          : Extract 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.