ObjectGetObjectByPath Op

ObjectGetObjectByPath

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 object like this:

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

a path of data.persons.1 will result in this object:

{
  "name": "eli"
}

Full Name
  • Ops.Data.JsonPath.ObjectGetObjectByPath
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorgithubMaintained by Team


INPUT PORTS


Object (Object)

json object

Path (String)

the path

OUTPUT PORTS


Output (Object)

the object

Found (booleanNumber)

 

Patches using ObjectGetObjectByPath

  • Examples
  • Public
  • My Patches

Changelog


improvementchange errorlevels, show hint when no path provideduser avatarstephan - 2025-01-14 11:33
improvementchange "found" port to boolNum typeuser avatarstephan - 2025-03-07 14:39
improvementshow full path in extended titleuser avatarstephan - 2025-05-21 14:04