parent

Returns the parent of the given path.

Example

{
  "$template": {
    "$comment": "The field below will be '#/test/path'",
    "test": "{{JsonPath('#/test/path[1]').parent()}}"
  }
}