Advertisement
mbazs

JSON parsing with BASH

Apr 20th, 2017
521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. jq '.command' <<EOF
  2.     {
  3.         "command": "cmd0",
  4.         "param": "1"
  5.     }
  6.     {
  7.         "command": "cmd1",
  8.         "param": "2"
  9.     }
  10. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement