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: cables

Returns the object at the position defined by a path


summary (oneliner)

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


doc

issues

youtube id

caniuse query

collections

related ops

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 Documentationcancel save

ObjectGetObjectByPath - Example

Open Example In Editor


Examples using ObjectGetObjectByPath ()

Public Patches using ObjectGetObjectByPath ()