pttsbinet.org/x/ptt/cmd/json-fmt

json-fmt command

Command json-fmt formats a JSON document.

json-fmt - format a JSON document.

Usage: json-fmt [options] [FILE1 [FILE2 [...]]]

ex:
 $> json-fmt f1.json f2.json > out.json
 $> json-fmt -o out.json f1.json f2.json
 $> json-fmt < f1.json > out.json
 $> cat f1.json | json-fmt > out.json

options:
  -i string
    	indentation to use for each indentation nesting (default "  ")
  -o string
    	path to output JSON file
  -p string
    	prefix to prepend to output JSON document
Version
v0.0.0-20250303145539-212a2a8f82e2 (latest)
Published
Mar 3, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
5 days ago

Tools for package owners.