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
- Host: GitHub
- URL: https://github.com/pystardust/jsp
- Owner: pystardust
- License: gpl-3.0
- Created: 2021-07-12T07:08:24.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T15:54:51.000Z (about 4 years ago)
- Last Synced: 2025-05-13T02:09:08.622Z (5 months ago)
- Topics: json, json-parser, posix-sh, sed, shell
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 13
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```