phpman > man > json5(1)

Markdown | JSON | MCP    

TLDR: json5 (tldr-pages)

Convert JSON5 files to JSON.

  • 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}} {{-o|--out-file}} {{path/to/output_file.json}}
  • Validate 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_amount}}
  • Display help
    json5 {{-h|--help}}
CLI.JS(1)                                   User Commands                                  CLI.JS(1)



NAME
       cli.js - Command line for the JSON5 Data Interchange Format (JSON5)

DESCRIPTION
              Usage: json5 [options] <file>

              If <file> is not provided, then STDIN is used.

              Options:

       -s, --space
              The number of spaces to indent or 't' for tabs

       -o, --out-file [file]
              Output to the specified file, otherwise STDOUT

       -v, --validate
              Validate JSON5 but do not output JSON

       -V, --version
              Output the version number

       -h, --help
              Output usage information



cli.js 2.2.0                                November 2021                                  CLI.JS(1)

Generated by phpman v3.7.12 Author: Che Dong Under GNU General Public License
2026-06-13 06:52 @216.73.216.28
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!