ArrayGetObjectByPath Op

ArrayGetObjectByPath

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

Full Name
  • Ops.Data.JsonPath.ArrayGetObjectByPath
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


INPUT PORTS


Array (Array)
Path (String)

the path

OUTPUT PORTS


Output (Object)

the object

Found (booleanNumber)

Patches using ArrayGetObjectByPath

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Json.ObjectGetObjectByPathuser avatarcables - 2021-01-08 17:27
Ops.User.cables.ArrayGetObjectByPath renamed to Ops.Json.ArrayGetObjectByPathuser avatarcables - 2021-01-08 17:29