ArrayGetStringByPath Op

ArrayGetStringByPath

Finds a string at a position in an array defined by path


<p>useful when working with nested data structures.</p> <p>the path defines the way to the string. the string will be returned</p> <p>given an array like this:</p> <pre><code>[ &quot;alyx&quot;,&quot;gordon&quot;,&quot;eli&quot;,&quot;g-man&quot;] </code></pre> <p>a path of 2 will return <code>eli</code>:</p>


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


INPUT PORTS


Array (Array)
Path (String)

<p>the path (i.e. data.names)</p>

Return path if missing (Number:

<i>boolean</i>

)

OUTPUT PORTS


Output (String)

<p>the string</p>

Found (

<i>boolean</i>

Number)


Patches using ArrayGetStringByPath

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Json.ObjectGetStringByPathuser avatarcables - 2021-01-08 16:35
Ops.User.cables.ArrayGetStringByPath renamed to Ops.Json.ArrayGetStringByPathuser avatarcables - 2021-01-08 17:03