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

ObjectGetNumberByPath Op

Ops.Json.ObjectGetNumberByPath


ObjectGetNumberByPath
Namespace: Ops.Json

Op author: stephan

finds a number at a position in an object defined by path


useful when working with nested data structures.

the path defines the way to the number. the number will be returned

given an object like this:

{
    "data": { "numbers": [ 1,2,3,4,5] }
}

a path of data.numbers.1 will return 2:



Inputs

Object (Object)

json object

Path (String)

the past (i.e. person.age)

Outputs

Output (Number)

the number

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

Edit Documentation 

ObjectGetNumberByPath - Example

Open Example In Editor

Patches using ObjectGetNumberByPath