ObjectGetNumberByPath Op

ObjectGetNumberByPath

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


<p>useful when working with nested data structures.</p> <p>the path defines the way to the number. the number will be returned</p> <p>given an object like this:</p> <pre><code>{ &quot;data&quot;: { &quot;numbers&quot;: [ 1,2,3,4,5] } } </code></pre> <p>a path of <code>data.numbers.1</code> will return <code>2</code>:</p>


Full Name
  • Ops.Data.JsonPath.ObjectGetNumberByPath
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


INPUT PORTS


Object (Object)

<p>json object</p>

Path (String)

<p>the past (i.e. person.age)</p>

OUTPUT PORTS


Output (Number)

<p>the number</p>

Found (

<i>boolean</i>

Number)


Patches using ObjectGetNumberByPath

  • Examples
  • Public
  • My Patches