I met problem when dealing with nested foreach, I found the problem is related to the number of loops, I paste the example as follows.
http://www.plantuml.com/plantuml/uml/rT4xQeP050NW_gxYUB4A4ZIFHWYuXwGBAQvwHOdpG6r4t7iS4WFAxmB-wfmPlcdE5ECamsGwMnln5CMDStZ30gwSyM9dpi7ltxFLYHEm6j-xMNLavFWaO64hHiE9fUyg3MYKNeRmC4jJhCbzgDAL1_EQhlYYbUW17wtYznwk0IXgtA1IjOZL-0oTHLZjyNyR0WxawIOveUSBT68lrqnjlKawzhtjMMpvzza_
@startmindmap
!$foo = { "company": "Skynet", "employees" : [
{"name" : "alice", "salary": 100 },
{"name" : "alice", "salary": 100 },
{"name" : "alice", "salary": 100 },
{"name" : "alice", "salary": 100 },
{"name" : "alice", "salary": 100 },
{"name" : "bob", "salary": 50} ]
}
* The salary of
!foreach $emp1 in $foo.employees
!foreach $emp2 in $foo.employees
!foreach $emp3 in $foo.employees
!foreach $emp4 in $foo.employees
!endfor
!endfor
!endfor
!endfor
@endmindmap