1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 15:02:09 +02:00
tldr/pages/common/json5.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

28 lines
612 B
Markdown

# json5
> A command-line tool for converting JSON5 files to JSON.
> More information: <https://json5.org>.
- Convert JSON5 stdin to JSON stdout:
`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}}`
- View available options:
`json5 --help`