Step: Pipe: |
Pipe: |
Similar to unix's shell |
operator feeds the output of one filter to the next one.
Simple example would be .car | .make
, which is exactly the same as .car.make
.
More interesting example is with arrays. If your operator produces multiple results like .car.options[]
then you can filter each option with .car.options[] | .price
Now can you print each pet's name for the JSON below.
Input:
Expected: