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 - visible for everyone
License
  • MIT
AuthorgithubMaintained by Team


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
improvementchange errorlevels, show hint when no path provideduser avatarstephan - 2025-01-14 11:34
improvementchange "found" port to boolNum typeuser avatarstephan - 2025-03-07 14:38
improvementshow full path in extended titleuser avatarstephan - 2025-05-21 14:04