json5

json5

TLDR

Convert JSON5 stdin to JSON stdout

>_ echo [input] | json5
copy

Convert a JSON5 file to JSON and output to stdout

>_ json5 [path/to/input_file.json5]
copy

Convert a JSON5 file to the specified JSON file

>_ json5 [path/to/input_file.json5] --out-file [path/to/output_file.json]
copy

Validate a JSON5 file

>_ json5 [path/to/input_file.json5] --validate
copy

Specify the number of spaces to indent by (or "t" for tabs)

>_ json5 --space [indent_amount]
copy

View available options

>_ json5 --help
copy

Copied to clipboard
free 100$ digital ocean credit