Confused about the json path lab

i trid to solve this isssue but i hit a snag.please could someone help out.

https://learn.kodekloud.com/user/courses/devops-pre-requisite-course/module/1327c721-3e41-4b9d-8cd5-45dafdfe5d7b/lesson/ceca406b-b93e-4b85-98af-119c4cba07a1

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

i did as adviced,still got the error messsage.

Do it again and show me what you get for

cat answer1.sh

when the question is marked wrong