Structured Stream Processing and Presentation | sspp
What
sspp is a command-line tool is a parse and presentation utility for structured documents, i.e, json. Currently it only supports json.
Why
There is not good command line tool that works as an umbrella command to support multiple structured config / document.
Although currently this tool is an alternative to jq.
How
How to install
- Please install Golang
- You also need Git-scm
- Clone the repository
git clone https://github.com/0hsn/sspp.git
- Change directory
cd ./sspp
- Put on a path that's on your OS
$PATH. On my case ~/.local/bin is on my $PATH
go build -o ~/.local/bin/sspp ./src
Usage
$ curl -s https://httpbin.org/get | sspp --json='headers.Host'
# you can pass data directly with --data flag
$ sspp --json='data.email' --data='{"data": {"email": "sample@example.org"}}'
# It is possible to pass default data directly with --or flag
$ sspp --json='data.nonExistent' --data='{"data": {"email": "sample@example.org"}}' --or="nil"
$ curl -s https://httpbin.org/get | sspp --json='headers.nonExistent' --or="nil"
Report issue
You can report issues or ask questions on github issues.