ArrayGetObjectByPath Op

ArrayGetObjectByPath

Returns the object at the position defined by a path


<p>useful when working with nested data structures. </p> <p>the path defines the way to the object . the given object will be returned</p> <p>given an array like this:</p> <pre><code>[ [ { &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>0.1</code> will result in this array:</p> <pre><code>[ { &quot;name&quot;: &quot;alyx&quot; }, { &quot;name&quot;: &quot;eli&quot; } ] </code></pre>


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


INPUT PORTS


Array (Array)
Path (String)

<p>the path</p>

OUTPUT PORTS


Output (Object)

<p>the object</p>

Found (

<i>boolean</i>

Number)


Patches using ArrayGetObjectByPath

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Json.ObjectGetObjectByPathuser avatarcables - 2021-01-08 17:27
Ops.User.cables.ArrayGetObjectByPath renamed to Ops.Json.ArrayGetObjectByPathuser avatarcables - 2021-01-08 17:29