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

Edit Documentation

Full Name
  • Ops.Json.ObjectGetObjectByPath
Visibility
  • Core Op - Official cables op
License
  • MIT
Author


 

INPUT PORTS


Object (Object)

json object

Path (String)

the path

OUTPUT PORTS


Output (Object)

the object

Found (boolean Number)

Patches using ObjectGetObjectByPath

  • Examples
  • Public
  • My Patches