ObjectGetArrayByPath Op
returns the array at the position defined by a path
Summary (oneliner)
<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 object like this:</p> <pre><code>{ "data": { "persons": [ { "name": "alyx" }, { "name": "eli" }, { "name": "gordon" } ] } } </code></pre> <p>a path of <code>data.persons</code> will result in this array:</p> <pre><code> [ { "name": "alyx" }, { "name": "eli" }, { "name": "gordon" } ] </code></pre>
- Ops.Data.JsonPath.ObjectGetArrayByPath
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch ObjectGetArrayByPath - Example
INPUT PORTS
<p>json object</p>
<p>path to array (i.e. data.numbers)</p>
OUTPUT PORTS
<p>array of values</p>
<i>boolean</i>
Number)