JSON Splitter for Nested Arrays
This example demonstrates how to use the JSON Splitter Snap to split a nested array in a JSON structure. The pipeline contains a File Reader, JSON Parser, and JSON Splitter Snap.
- Ensure the JSON Parser Snap has valid structured output.
- Set the JSON Splitter Snap path to
$orders[*].orderlines
to split eachorderlines
array. - Use
$orders[*].orderlines[*]
if you want to split each orderline into separate documents.