All Questions
Tagged with json variable-substitution
4 questions
1
vote
2
answers
601
views
bash var substitution inside json to use in curl
Team,
I am unable to substitute values inside json(myjson) to use in curl command. any hint?
JENKINS_USERNAME="svc-user"
JENKINS_USER_TOKEN="xxxx"
JENKINS_INSTANCE_FQDN="sham....
1
vote
2
answers
3k
views
Pass the variable value to curl JSON
I am trying to create a JIRA ticket using curl POST method, but the variable substitution is not happening properly in TODAY_DATE variable. If i remove that it is working fine. ANy hint on how this ...
0
votes
3
answers
2k
views
Not able to get the values in JSON from Variable
I have written small Shell/bash script, where I have some data in sampleData.txt file which I want to convert in Base64 and to pass it in variable $scriptPayload:
value=$(cat sampleData.txt)
echo &...
26
votes
6
answers
100k
views
Bash variable substitution in a JSON string
I'm trying to create a JSON in BASH where one of the fields is based on the result of an earlier command
BIN=$(cat next_entry)
OUTDIR="/tmp/cpupower/${BIN}"
echo $OUTDIR
JSON="'"'{"hostname": "...