JSON.sh 哟,所以这是一个用shell编写的json解析器,与ash,bash,dash和zsh兼容 将json传递给它,然后遍历json对象并打印出当前对象(作为JSON数组)的路径,然后打印出该对象的路径,没有空格。 $ json_parse < package.json [ " name " ] " JSON.sh " [ " version " ] " 0.0.0 " [ " description " ] " " [ " homepage " ] " http://github.com/dominictarr/JSON.sh " [ " repository " , " type " ] " git " [ " repository " , " url " ] " https://github.com/dominictarr/JSON.sh.git " [