mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:42:08 +02:00

* pages*: use generic word for help * git: add newline to the end Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * pages*: make help and version commands comply with the style guide * java: fix Java name --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
608 B
608 B
json5
A command-line tool for converting JSON5 files to JSON. More information: https://json5.org.
- Convert JSON5
stdin
to JSONstdout
:
echo {{input}} | json5
- Convert a JSON5 file to JSON and output to
stdout
:
json5 {{path/to/input_file.json5}}
- Convert a JSON5 file to the specified JSON file:
json5 {{path/to/input_file.json5}} --out-file {{path/to/output_file.json}}
- Validate a JSON5 file:
json5 {{path/to/input_file.json5}} --validate
- Specify the number of spaces to indent by (or "t" for tabs):
json5 --space {{indent_amount}}
- Display help:
json5 --help