[
    {
        "given" : [
          {
            "category": "reference",
            "author": "Nigel Rees",
            "title": "Sayings of the Century",
            "price": 8.95,
            "bookmark": [{
                "page": 40,
                "owner": "bob"
            }]
          },
          {
            "category": "fiction",
            "author": "Evelyn Waugh",
            "title": "Sword of Honour",
            "price": 12.99,
            "bookmarks": [
              {
                  "page": 35,
                  "owner": "bob"
              },
              {
                  "page": 45,
                  "owner": "alice"
              }
            ]
          },
          {
            "category": "fiction",
            "author": "Herman Melville",
            "title": "Moby Dick",
            "isbn": "0-553-21311-3",
            "price": 8.99,
            "bookmarks": [
              {
                  "page": 3035,
                  "owner": "chuck"
              },
              {
                  "page": 45,
                  "owner": "dennis"
              }
            ]
          }
      ],
        "cases" : [
            {
                "source" : "https://github.com/cburgmer/json-path-comparison",
                "comment" : "Filter expression with parent operator",
                "expression" : "$[*].bookmarks[?(@.page == 45)]^^",
                "result" : [
                 {
                   "category": "fiction",
                   "author": "Evelyn Waugh",
                   "title": "Sword of Honour",
                   "price": 12.99,
                   "bookmarks": [
                     {
                       "page": 35,
                       "owner": "bob"
                     },
                     {
                       "page": 45,
                       "owner": "alice"
                     }
                   ]
                 },
                 {
                   "category": "fiction",
                   "author": "Herman Melville",
                   "title": "Moby Dick",
                   "isbn": "0-553-21311-3",
                   "price": 8.99,
                   "bookmarks": [
                     {
                       "page": 3035,
                       "owner": "chuck"
                     },
                     {
                       "page": 45,
                       "owner": "dennis"
                     }
                   ]
                 }
               ]
            }
        ]
    }
]
