jq
Install
curl \
--silent \
--url https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \
--location \
--output ./jq
chmod +x ./jq
sudo mv ./jq /usr/local/bin
sudo chown root.root /usr/local/bin/jq#!/bin/bash
someVar1="Something something"
someVar2="something else"
# Create a large JSON string, not very maintainable
json1="{\"v1\":\"${someVar1}\",\"v2\": \"${someVar2}\"}"
echo "${json1}" | jq .Incrementally adding to an array in JQ
Forgot what I did here...
Crack up the claims part of a JWT
Last updated