ObjectGetArrayValuesByPath Op
Outputs all the values of the properties of an array of objects given a path
Summary (oneliner)
<p>useful to interate over nested data structures. </p> <p>the path defines the way to the first object. this op will then try to iterate over the array that contains the object with the given property and return all the values fo each object in the array.</p> <p>given an object like this:</p> <pre><code>{ "data": [ { "firstName": "Gordon", "lastName": "Freeman" }, { "firstName": "Eli", "lastName": "Vance" }, { "firstName": "Alyx", "lastName": "Vance" }, { "firstName": "G", "lastName": "Man" } ] } </code></pre> <p>a path of <code>data.0.firstName</code> will result in this array:</p> <pre><code>[ "Gordon", "Eli", "Alyx", "G" ] </code></pre>
- Ops.Data.JsonPath.ObjectGetArrayValuesByPath
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch ObjectGetArrayValuesByPath - Example
INPUT PORTS
<p>json object</p>
<p>path to first array field (i.e. "data.0.firstName")</p>
OUTPUT PORTS
<p>array of values</p>
<i>boolean</i>
Number)