ObjectGetNumberByPath Op

ObjectGetNumberByPath

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:


Edit Documentation

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


 

INPUT PORTS


Object (Object)

json object

Path (String)

the past (i.e. person.age)

OUTPUT PORTS


Output (Number)

the number

Found (boolean Number)

Patches using ObjectGetNumberByPath

  • Examples
  • Public
  • My Patches