Skip to content

Instantly share code, notes, and snippets.

@julianxhokaxhiu
Created August 29, 2017 07:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julianxhokaxhiu/3ae6b183611fb49712b4c48a86da3e5f to your computer and use it in GitHub Desktop.
Save julianxhokaxhiu/3ae6b183611fb49712b4c48a86da3e5f to your computer and use it in GitHub Desktop.
Example for a nicer JSON typing with ENV vars, in a Bash script
#!/bin/bash
FOO="bar"
JSON=$(cat <<EOF
{
"foo": "$FOO"
}
EOF
)
echo $JSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment