i trid to solve this isssue but i hit a snag.please could someone help out.
This is correct (testing your query)
alpine-host ~ ➜ cat q1.json | jpath $.property1
[
"value1"
]
This is not
alpine-host ~ ➜ cat q1.json | jpath $.property1 > answer1.sh
It wants the command you ran put in that file, not the results it produced. which is what is meant by “So you need to write the cat q1.json | jpath $.property1
into file answer1.sh
.”
alpine-host ~ ➜ echo "cat q1.json | jpath $.property1" > answer1.sh
So you can then run it
sh ./answer1.sh
See also
cat answer1.sh
Do it again and show me what you get for
cat answer1.sh
when the question is marked wrong