Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 527

Searching through an array

$
0
0

Trying to learn how to think in jq script.

Given this data:

{"characters": [       { "First": "Fred", "Last": "Weasley" },       { "First": "George", "Last": "Weasley" },       { "First": "Hermione", "Last": "Granger" },       { "First": "Ron", "Last": "Weasley" },       { "First": "Hagrid" },       { "First": "Draco", "Last": "Malfoy" },       { "First": "Molly", "Last": "Weasley" },       { "First": "Voldemort" },       { "First": "Lucius", "Last": "Malfoy" }    ]}

Find all characters with the same last name as "Ron". And no, you don't already know his last name.


Viewing all articles
Browse latest Browse all 527

Trending Articles