mirror of
https://github.com/jht5945/prettyjson.git
synced 2025-12-27 17:20:05 +08:00
30 lines
477 B
Markdown
30 lines
477 B
Markdown
# prettyjson
|
|
prettyjson - command line JSON format tool.
|
|
|
|
|
|
```
|
|
$ prettyjson --help
|
|
Usage:
|
|
prettyjson [OPTIONS] [FILE]
|
|
|
|
prettyjson - command line JSON pretty tool.
|
|
|
|
Positional arguments:
|
|
FILE FILE
|
|
|
|
Optional arguments:
|
|
-h,--help Show this help message and exit
|
|
-w,--tab-width TAB_WIDTH
|
|
Tab width, default 4
|
|
-v,--version Print version
|
|
```
|
|
|
|
```
|
|
$ echo '{"k": "value"}' | prettyjson
|
|
{
|
|
"k": "value"
|
|
}
|
|
```
|
|
|
|
|