jpp - JSON Pretty Printer
Pretty print JSON with optional path extraction. Lightweight jq alternative.
Quick Start
cat data.json | jpp
jpp file.json
jpp file.json .key
curl -s api.example.com | jpp .data[0]
Usage
jpp [file] [path] # Pretty print, optionally extract path
cat file | jpp [path] # Read from stdin
Path Syntax
| Pattern | Description |
|---|---|
|
Get key from object |
|
Nested key access |
|
Array index |
|
Combined access |