An open API service indexing awesome lists of open source software.

https://github.com/pystardust/jsp

Json Shell Parser: A simple json parser in POSIX shell and sed
https://github.com/pystardust/jsp

json json-parser posix-sh sed shell

Last synced: 3 months ago
JSON representation

Json Shell Parser: A simple json parser in POSIX shell and sed

Awesome Lists containing this project

README

          

# jsp

Json shell parser
Using POSIX shell and sed

## usage

```
jsp
```
Json is fed through stdin.

* filter format
```
.key1.key2
```
* example

```sh
printf '%s' '{
"user": "notroot",
"shell": {"name":"dash", "path":"/usr/bin/dash"},
"interactiveShell": {"name": "bash", "path":"/usr/bin/bash/"}
}' | ./jsp .interactiveShell.name
```