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"
        }
]

Edit Documentation

Full Name
  • Ops.Json.ArrayGetArrayByPath
Visibility
  • Core Op - Official cables op
License
  • MIT
Author


 

INPUT PORTS


Array (Array)
Path (String)

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

OUTPUT PORTS


Output (Array)

array of values

Found (boolean Number)

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