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

summary (oneliner)

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

doc

issues

youtube id

collections

related ops

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 Documentationcancel save
ArrayGetObjectByPath - Example:


Credits


Changelog


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

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

Examples using ArrayGetObjectByPath

Public Patches using ArrayGetObjectByPath