Options (4)
-o, --out-filebooleanConvert a JSON5 file to the specified JSON file
Example:
json5 {{path/to/input_file.json5}} {{[-o|--out-file]}} {{path/to/output_file.json}}-v, --validatebooleanValidate a JSON5 file
Example:
json5 {{path/to/input_file.json5}} {{[-v|--validate]}}-s, --spacebooleanSpecify the number of spaces to indent by (or "t" for tabs)
Example:
json5 {{[-s|--space]}} {{indent_amount}}-h, --helpbooleanDisplay help
Example:
json5 {{[-h|--help]}}Examples (6)
Convert a JSON5 file to JSON and output to `stdout`
json5 path/to/input_file.json5Convert a JSON5 file to the specified JSON file
json5 path/to/input_file.json5 [-o|--out-file] path/to/output_file.jsonValidate a JSON5 file
json5 path/to/input_file.json5 [-v|--validate]Specify the number of spaces to indent by (or "t" for tabs)
json5 [-s|--space] indent_amountDisplay help
json5 [-h|--help]made by @shridhargupta | data from tldr-pages