Skip to content
/ jsp Public

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

License

Notifications You must be signed in to change notification settings

pystardust/jsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages