ArrayGetArrayByPath Op

ArrayGetArrayByPath

returns the array at the position defined by a path


useful when working with nested data structures.

the path defines the way to the array. the given array will be returned

given an array like this:

[
    [
        {
            "firstName": "Gordon",
            "lastName": "Freeman"
        }
   ],
   [
        {
            "firstName": "Eli",
            "lastName": "Vance"
        }
    ]
]

a path of 0 will result in this array:

 [
        {
            "firstName": "Gordon",
            "lastName": "Freeman"
        }
]

Full Name
  • Ops.Data.JsonPath.ArrayGetArrayByPath
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorgithubMaintained by Team


INPUT PORTS


Array (Array)
Path (String)

path to array (i.e. data.numbers)

OUTPUT PORTS


Output (Array)

array of values

Found (booleanNumber)

 

Patches using ArrayGetArrayByPath

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Json.ObjectGetArrayByPathuser avatarcables - 2021-01-08 17:26
Ops.User.cables.ArrayGetArrayByPath renamed to Ops.Json.ArrayGetArrayByPathuser avatarcables - 2021-01-08 17:28
improvementchange errorlevels, show hint when no path provideduser avatarstephan - 2025-01-14 11:33
improvementchange "found" port to boolNum typeuser avatarstephan - 2025-03-07 14:37
improvementshow full path in extended titleuser avatarstephan - 2025-05-21 14:04