I don't think this is currently possible, but what would it look like with more than two levels in your hierarchy? The boxes would look quite odd quite fast....
As a workaround I tried to use a map, which if you use invalid json looks like it's trying to work, but throws a syntax error with valid json. JSON as an embedded diagram has only just been implemented (thanks to a suggestion by The-Lu) so potentially it will work soon.
Hello C.,
If you want that, it is necessary to put all on the same line...But that is not so easy, if there are a lot of JSON to manage....
@startuml map "Embedded JSON on Map table" as mapper { attribute => {{json\n{"this":"that","fgd":"sdf"}\n}} name => value } @enduml
If that can help,Regards,Th.
(--------)
Hello J.,
Unfortunately, we cannot yet include sub-JSON in JSON (the JSON must stay JSON)...
Only sub-JSON on Map table:
Therefore your Question/help will be a wanted functionality, and stays active.
Regards,Th.