@startuml !$data={"partlen": "2", "game": "GamePlantuml", "participants": [ {"name": "XYZ" ,"as": "xyz", "team": "A"}, {"name": "RST" ,"as": "rst", "team": "B"}, {"name": "UVW" ,"as": "uvw", "team": "B"}], "color": {"A": "red", "B": "blue"}, "red": { "pure": "red", "paler": "pink"}, "blue": { "pure": "blue", "paler": "skyblue"} } :a; !foreach $part in $data.participants :$part.name as $part.as; :1 access to json: [$data.color.A, $data.color.B] $part.team -> $data.color of $part.team; :2 access to json: [$data.color.A, $data.color.B] $part.team -> $data.color[$part.team]; :3 access to json, **with multiple indirection**: $part.team -> $data[$data.color[$part.team]][paler]; !endfor :b; @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
🎉 Discover the future PlantUML Web Editor! 🚀
PNG
SVG
ASCII Art