How to use curly braces in a tooltip? I would like to show json or something like it in the tooltips.

+1 vote
asked Dec 28, 2022 in Question / help by anonymous

I want use something like this


actor Bob [[]]

actor Alice Alice -> Bob : [[{tooltip with json object\n{"key":"value"}} json details]]


And see tooltip:

tooltip with json object


Is it possible?

1 Answer

0 votes
answered Dec 29, 2022 by evgenij (140 points)
I had a similar issue with square brackets. Escaping with tilde works (use '~[' instead of '[') with square brackets. For some reason, this solution does not work with curly brackets.