ArrayGetStringByPath Op

ArrayGetStringByPath

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


useful when working with nested data structures.

the path defines the way to the string. the string will be returned

given an array like this:

[ "alyx","gordon","eli","g-man"]

a path of 2 will return eli:


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


INPUT PORTS


Array (Array)
Path (String)

the path (i.e. data.names)

Return path if missing (Number:boolean )

OUTPUT PORTS


Output (String)

the string

Found (boolean 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