% CONVERT-JSON(1) Version 3.2.0 | Scripts Documentation % Georg Voell - georg.voell@standby.cloud % (c)2024 Standby.cloud NAME ==== **convert-json** - (TCSH Script) Reads a JSON file and converts it to a human readable file. SYNOPSIS ======== | **convert-json** \[_options_] \[_keys_] DESCRIPTION =========== Reads a JSON file and converts it to a human readable file. Options ------- -h, \--help          : Displays helptext. -v, \--version          : Displays the version of the script. -n, \--noheader          : Don't write a header (needed for concatenating files) in output "tsv". -q, \--quiet          : Just write error message to LOGFILE. -r, \--raw          : Don't convert hyphens e.g. lifecycle-state to lifecycleState -o, \--output _string_         : Output format: _string_ can be "line" (default), "json", "tsv" or "table". -i, \--import _string_         : JSON file to read from - if not specified, read from stdin. Keys ------- Optional - Select the keys you want to convert. Use a comma (or tab) separated string for keys. If empty - display all keys in JSON.         : If empty - display all keys in JSON. EXIT CODES ========== 01: Unknown or wrong parameter. 02: **jq** not found. This script needs **jq** to perform. 03: JSON error. 04: Key in JSON contains dash ("-") or blank. **jq** does not work here. - this is now obsolete 05: JSON does not start with "{". 06: JSON contains less then 2 lines. 07: **jq** join error. 99: User interrupt. SEE ALSO ======== **print-table**(1), **install-scripts**(1)