USING JQ

Some good info here: https://earthly.dev/blog/jq-select/

CURL EXAMPLE

curl https://api.nike.com/product_feed/rollup_threads/v2\?consumerChannelId\=15d92135-394e-487a-8afa-f6c8525c9ea9\&filter\=marketplace\(CN\)\&filter\=language\(zh-Hans\) \
| jq '.objects[].productInfo[].merchProduct'

Note that the dot notation selection:

  • Must be in single quotes
  • Has to start with .
  • Doesn’t like null/missing keys
end of storey Last modified: