Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Parsing JSON at the CLI: A Practical Introduction to jq and more. Parent comment
You misunderstand. The command I wrote is meant to be used as I wrote it. `..` is not a placeholder for you to replace.
https://stedolan.github.io/jq/manual/#RecursiveDescent%3a%2e...
>and as you can see the field fileURL is actually an object with another field en-US (with a hyphen) so the jq becomes something like this:
Sure, so then it's:
<file.json jq '.. | select(.fileURL?).fileURL["en-US"] | select(startswith("http://"))' -r
Thanks for explaining!
You misunderstand. The command I wrote is meant to be used as I wrote it. `..` is not a placeholder for you to replace.
https://stedolan.github.io/jq/manual/#RecursiveDescent%3a%2e...
>and as you can see the field fileURL is actually an object with another field en-US (with a hyphen) so the jq becomes something like this:
Sure, so then it's: