beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

ObjectGetObjectByPath Op

Ops.Json.ObjectGetObjectByPath


ObjectGetObjectByPath
Namespace: Ops.Json

Op author: stephan

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


Inputs

Object (Object)

json object

Path (String)

the path

Outputs

Output (Object)

the object

Found (boolean Number)
Caught a mistake or want to contribute to the documentation?

Edit Documentation 

ObjectGetObjectByPath - Example

Open Example In Editor

Patches using ObjectGetObjectByPath