Mapping a Nested Array Child Element Outside the Nested Array Scope
To map a nested array child element outside the nested array scope but within its parent array, you must use the scoping variable of the parent array.
- Procedure
- Map the parent array root.
- Map the nested array root.
- Map the nested array child element.
In the image below,
$loop
implicitly points to address. In addition, the mapping also explicitly specifies the scope of the parent,"objArray1"
. This is because zip1 is mapped to code which is outside the scope of address1, but within the scope of its parent array, objArray1.