Filter and print parent

Access properties of the parent object with 2 points .. (or more) when you need to print a parent property using filters in nested arrays.

Data

  {
  "country": "USA",
  "movies": [
    { "name": "Inception", "year": 2010 },
    { "name": "Matrix", "year": 1999 },
    { "name": "BTTF", "year": 1985 }
  ]
}

{d.movies[year=1999]..country}

Last updated