ObjectGetArrayByPath Op

ObjectGetArrayByPath

returns the array at the position defined by a path


useful when working with nested data structures.

the path defines the way to the array. the given array will be returned

given an object like this:

{
    "data": { 
        "persons": [ 
            {
                "name": "alyx"
            },
            {
                "name": "eli"
            },
            {
                "name": "gordon"
            }
        ] 
    }
}

a path of data.persons will result in this array:

 [ 
            {
                "name": "alyx"
            },
            {
                "name": "eli"
            },
            {
                "name": "gordon"
            }
        ] 

Full Name
  • Ops.Data.JsonPath.ObjectGetArrayByPath
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorCreated
githubMaintained by Team


INPUT PORTS


Object (Object)

json object

Path (String)

path to array (i.e. data.numbers)

OUTPUT PORTS


Output (Array)

array of values

Found (booleanNumber)

Changelog

Patches using ObjectGetArrayByPath

  • Examples
  • Public
  • My Patches