Answer the question
In order to leave comments, you need to log in
How to escape "-" when running jq utility?
i have json file
{
"name": "view1",
"version": "1.1.1",
"target-dir": "/opt/project/spark-jobs/",
"target-hosts": {
"dev": ["host1", "host2"],
"prod": ["host3", "host4"]
}
}
jq '.target-hosts' deploy.json
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question