Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

jq delete variable

Use jq to delete a variable passed in from bash:
jq 'del(."'"$myvar"'")' test.json
 
PREVIOUS NEXT
Tagged: #jq #delete #variable
ADD COMMENT
Topic
Name
7+6 =