ObjectGetArrayByPath Op

ObjectGetArrayByPath

returns the array at the position defined by a path


<p>useful when working with nested data structures. </p> <p>the path defines the way to the array. the given array will be returned</p> <p>given an object like this:</p> <pre><code>{ &quot;data&quot;: { &quot;persons&quot;: [ { &quot;name&quot;: &quot;alyx&quot; }, { &quot;name&quot;: &quot;eli&quot; }, { &quot;name&quot;: &quot;gordon&quot; } ] } } </code></pre> <p>a path of <code>data.persons</code> will result in this array:</p> <pre><code> [ { &quot;name&quot;: &quot;alyx&quot; }, { &quot;name&quot;: &quot;eli&quot; }, { &quot;name&quot;: &quot;gordon&quot; } ] </code></pre>


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


INPUT PORTS


Object (Object)

<p>json object</p>

Path (String)

<p>path to array (i.e. data.numbers)</p>

OUTPUT PORTS


Output (Array)

<p>array of values</p>

Found (

<i>boolean</i>

Number)


Patches using ObjectGetArrayByPath

  • Examples
  • Public
  • My Patches