| Use Case | Command | Description |
|---|---|---|
| Validate JSON5 | json5 -v file.json5 | Check if file is valid JSON5 (no output) |
| Prettyβprint with 2 spaces | json5 -s 2 file.json5 | Format JSON5 with indentation |
| Output to a file | json5 -o output.json file.json5 | Write result to a file |
| Read from STDIN | echo '{a:1}' | json5 -s 2 | Format JSON5 from a pipe |
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 17:43 @2600:1f28:365:80b0:f8a4:e764:d6bb:8e66
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format