Forum Discussion
Aleksandar_A
3 years agoContributor III
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.
Yes, I was able to retrieve just the element that has “error” entity and then use the splitter to flatten that Array element.
Thank you for the solution,
- psadasivam8 years agoNew Contributor III
@steven_rossi, Rest snap should provide you JSON as output document. Can you try validate your pipeline with “Execute during preview” option enabled on Rest Snap properties.