beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

ArrayGetObjectByPath Op

Ops.Json.ArrayGetObjectByPath


ArrayGetObjectByPath
Namespace: Ops.Json

Op author: stephan

Returns the object at the position defined by a path


useful when working with nested data structures.

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

given an array like this:

[
    [
        {
            "name": "alyx"
        },
        {
            "name": "eli"
        }
    ],
    [
        {
            "name": "gordon"
        }
    ] 
]

a path of 0.1 will result in this array:

[
    {
        "name": "alyx"
    },
    {
        "name": "eli"
    }
]


Inputs

Array (Array)
Path (String)

the path

Outputs

Output (Object)

the object

Found (boolean Number)
Caught a mistake or want to contribute to the documentation?

Edit Documentation 

ArrayGetObjectByPath - Example

Open Example In Editor

Patches using ArrayGetObjectByPath

Changelog


cloned op from Ops.Json.ObjectGetObjectByPath
2021-01-08 - cables
Ops.User.cables.ArrayGetObjectByPath renamed to Ops.Json.ArrayGetObjectByPath
2021-01-08 - cables