ArrayGetArrayByPath Op

ArrayGetArrayByPath

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 array like this:</p> <pre><code>[ [ { &quot;firstName&quot;: &quot;Gordon&quot;, &quot;lastName&quot;: &quot;Freeman&quot; } ], [ { &quot;firstName&quot;: &quot;Eli&quot;, &quot;lastName&quot;: &quot;Vance&quot; } ] ] </code></pre> <p>a path of <code>0</code> will result in this array:</p> <pre><code> [ { &quot;firstName&quot;: &quot;Gordon&quot;, &quot;lastName&quot;: &quot;Freeman&quot; } ] </code></pre>


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


INPUT PORTS


Array (Array)
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 ArrayGetArrayByPath

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Json.ObjectGetArrayByPathuser avatarcables - 2021-01-08 17:26
Ops.User.cables.ArrayGetArrayByPath renamed to Ops.Json.ArrayGetArrayByPathuser avatarcables - 2021-01-08 17:28