arvindnsn
3 years agoContributor
Selecting an entity from an Array
Hello,
From the below Array, I am trying to get only the “error” entity which will be in any one element or multiple elements. I tried using $.result.find(x => x.name == ‘error’) and $.result.map(x...
- 3 years ago
Hi @arvindnsn,
You can try to filter out documents that have “error” keys, and later on to split them using JSON Splitter Snap.
$result.filter(x => x.hasPath("error"))
Let me know if this helps you.
BR,
Aleksandar.