parse error: Expected another key-value pair at line 1, column 284
Incorrect JSON Formatting
I pulled some some into a string and trying to parse it with jq. I’m dynamically pulling the names of parameters and passing them in to the jq query as an argument, but none of that as the problem.
json = {"key" = "value" }p="key"echo $json | jq --arg k "$p" '.[$k]'
The problem was that the json was not properly formulated in the first place. I had an = where I should have…