Yes, that really works.
Thanks for helping out…
(Actually, I somehow suspected that, but as all related chapters in Matodon’s documentation claims it supports JSON-LD, I was mislead to believe that… Hooray for claiming to implement standards and then not doing!)
So, now I just need to do that in a nice (not special-cased) way in my JSON-LD serializer.