beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
ArrayGetArrayByPath
Ops.Json.ArrayGetArrayByPath
Namespace: Ops.Json
returns the array at the position defined by a path

summary (oneliner)

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

doc

issues

youtube id

collections

related ops

Inputs

Array (Array)

Path (String)

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


Outputs

Output (Array)

array of values


Found (boolean Number)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
ArrayGetArrayByPath - Example:


Credits


Changelog


cloned op from Ops.Json.ObjectGetArrayByPath
2021-01-08 - cables

Ops.User.cables.ArrayGetArrayByPath renamed to Ops.Json.ArrayGetArrayByPath
2021-01-08 - cables

Examples using ArrayGetArrayByPath

Public Patches using ArrayGetArrayByPath