#Hi,Im working on JQ exercises "shopping list" exercise, im publishing the answers in below format

3 messages · Page 1 of 1 (latest)

stable sapphire
#

Task 1: replace null with the "name" element of the shopping list.

jq '.name' ,

Task 2: replace null with the count of the required ingredients.

(jq '.ingredients|length' shopping-list.json),

Task 3: replace null with the amount of sugar.

(jq '.ingredients[] | select(.item == "sugar").amount' shopping-list.json),

But Run Tests doesnt go thru,pls suggest what im doing wrong?

trail ocean
#

What happens when you run the tests? Is there a syntax error? Does it time out? Is there an error message?

#

Please use codeblocks to share code (and test output)!