krot

jq json

Aug 29th, 2019
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. yum install epel-release -y
  2. yum install jq -y
  3. jq --version
  4. ---------
  5.     JSON_STRING=$( jq -n \
  6.                   --arg to1 "$to@$host" \
  7.                   --arg bo1 "$body" \
  8.                   '{to: $to1, body: $bo1}' )
  9.                   echo "$JSON_STRING";
Add Comment
Please, Sign In to add comment