krot

jq json

Aug 29th, 2019
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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";
RAW Paste Data