pystardust / jsp

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsp

Json shell parser
Using POSIX shell and sed

usage

jsp <filter>

Json is fed through stdin.

  • filter format

     .key1.key2
    
  • example

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

About

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

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%