[]: This is the array/object value iterator. When applied after an array (like .items[]), it outputs each element of that array.
.dvds: For each element output by .items[], access its dvds field.
[]: Again, iterate over the elements of the dvds array.
.url: For each element output by .dvds[], access its url field.
Handling missing dvds or url fields (more robust):
If some items might not have a dvds array, or some dvds might not have a url, the above command might produce errors or null values. To be more robust and only get URLs where they exist, and to avoid errors if dvds isn't an array:
bash
jq '.items[]?.dvds[]?.url?' yourfile.json
Or, even more common for this specific pattern:
bash
jq '.items[].dvds[]?.url' yourfile.json
.items[]: Iterate through items. If items itself might be missing or not an array, use .items?[].
.dvds[]?: Iterate through the dvds array for each item. The ? after [] makes it silently skip if dvds is not an array (e.g., null, or a non-array type, or if the dvds key is missing from an item).
.url: Get the url. If a url key is missing from a dvd object, jq will output null for that path.
Choose the command that best fits how robust you need to be against missing data. The simplest .items[].dvds[].url works if the structure is always consistent. The ?. and []? operators add safety.