@startuml !$char = { "quote" : "\"" } !$foo = { "company": "Skynet", "employees" : [ {"name" : "alice", "salary": 100 }, {"name" : "bob", "salary": 50} ] } !function $attribute($json, $attr) !$lhs=$char.quote+$attr+$char.quote+":" !$rhs=%substr($json,%strpos($json, $lhs)+%strlen($lhs)) !$end=%strlen($rhs) - 1 !if (%strpos($rhs,$char.quote) == 0) !$rhs=%substr($rhs,1) !$end=$end-1 !if (%strpos($rhs, $char.quote) >= 0) && (%strpos($rhs, $char.quote) < $end) !$end=%strpos($rhs, $char.quote) !endif !else !if (%strpos($rhs, ",") >= 0) && (%strpos($rhs, ",") < $end) !$end=%strpos($rhs, ",") !endif !if (%strpos($rhs, "}") >= 0) && (%strpos($rhs, "}") < $end) !$end=%strpos($rhs, "}") !endif !endif !return %substr($rhs,0,$end) !endfunction start !$attribute1="name" !$attribute2="salary" :The salary of <u>$attribute($foo.employees[0], $attribute1)</u> is <u>$attribute($foo.employees[0], $attribute2)</u>; @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