{
    "content": [
        {
            "type": "text",
            "text": "# json5 (man)\n\n## NAME\n\ncli.js - Command line for the JSON5 Data Interchange Format (JSON5)\n\n## DESCRIPTION\n\nUsage: json5 [options] <file>\n\n## TLDR\n\n> Convert JSON5 files to JSON.\n\n- Convert JSON5 `stdin` to JSON `stdout`:\n  `echo {{input}} | json5`\n- Convert a JSON5 file to JSON and output to `stdout`:\n  `json5 {{path/to/input_file.json5}}`\n- Convert a JSON5 file to the specified JSON file:\n  `json5 {{path/to/input_file.json5}} {{-o|--out-file}} {{path/to/output_file.json}}`\n- Validate a JSON5 file:\n  `json5 {{path/to/input_file.json5}} {{-v|--validate}}`\n- Specify the number of spaces to indent by (or \"t\" for tabs):\n  `json5 {{-s|--space}} {{indent_amount}}`\n- Display help:\n  `json5 {{-h|--help}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION** (5 subsections)\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "json5",
        "section": "",
        "mode": "man",
        "summary": "cli.js - Command line for the JSON5 Data Interchange Format (JSON5)",
        "synopsis": null,
        "tldr_summary": "Convert JSON5 files to JSON.",
        "tldr_examples": [
            {
                "description": "Convert JSON5 `stdin` to JSON `stdout`",
                "command": "echo {{input}} | json5"
            },
            {
                "description": "Convert a JSON5 file to JSON and output to `stdout`",
                "command": "json5 {{path/to/input_file.json5}}"
            },
            {
                "description": "Convert a JSON5 file to the specified JSON file",
                "command": "json5 {{path/to/input_file.json5}} {{-o|--out-file}} {{path/to/output_file.json}}"
            },
            {
                "description": "Validate a JSON5 file",
                "command": "json5 {{path/to/input_file.json5}} {{-v|--validate}}"
            },
            {
                "description": "Specify the number of spaces to indent by (or \"t\" for tabs)",
                "command": "json5 {{-s|--space}} {{indent_amount}}"
            },
            {
                "description": "Display help",
                "command": "json5 {{-h|--help}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-s",
                "long": "--space",
                "arg": null,
                "description": "The number of spaces to indent or 't' for tabs"
            },
            {
                "flag": "-o",
                "long": "--out-file",
                "arg": null,
                "description": "Output to the specified file, otherwise STDOUT"
            },
            {
                "flag": "-v",
                "long": "--validate",
                "arg": null,
                "description": "Validate JSON5 but do not output JSON"
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "Output the version number"
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Output usage information cli.js 2.2.0 November 2021 CLI.JS(1)"
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": [
                    {
                        "name": "-s --space",
                        "lines": 2,
                        "flag": "-s",
                        "long": "--space"
                    },
                    {
                        "name": "-o --out-file",
                        "lines": 2,
                        "flag": "-o",
                        "long": "--out-file"
                    },
                    {
                        "name": "-v --validate",
                        "lines": 2,
                        "flag": "-v",
                        "long": "--validate"
                    },
                    {
                        "name": "-V --version",
                        "lines": 2,
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-h --help",
                        "lines": 5,
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            }
        ],
        "sections": {
            "NAME": {
                "content": "cli.js - Command line for the JSON5 Data Interchange Format (JSON5)\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Usage: json5 [options] <file>\n\nIf <file> is not provided, then STDIN is used.\n\nOptions:\n",
                "subsections": [
                    {
                        "name": "-s --space",
                        "content": "The number of spaces to indent or 't' for tabs\n",
                        "flag": "-s",
                        "long": "--space"
                    },
                    {
                        "name": "-o --out-file",
                        "content": "Output to the specified file, otherwise STDOUT\n",
                        "flag": "-o",
                        "long": "--out-file"
                    },
                    {
                        "name": "-v --validate",
                        "content": "Validate JSON5 but do not output JSON\n",
                        "flag": "-v",
                        "long": "--validate"
                    },
                    {
                        "name": "-V --version",
                        "content": "Output the version number\n",
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-h --help",
                        "content": "Output usage information\n\n\n\ncli.js 2.2.0                                November 2021                                  CLI.JS(1)",
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            }
        }
    }
}