JSON Diagrams: accept JSON diagram as sub-diagram or embedded diagram

0 votes
asked Dec 9, 2020 in Wanted features by The-Lu (63,920 points)

Hello PlantUML team,

To continue with JSON wanted feature:

  • Could you accept JSON diagram as sub-diagram or embedded diagram?

Here is an example:

@startuml
file n [
Example of file:
{{json
{
   "fruit":"Apple",
   "size":"Large",
   "color": ["Red", "Green"]
}
}}
]
@enduml

[same thing also for wire-diagram]

Thanks for your support,
Regards,
Th.

1 Answer

0 votes
answered Dec 11, 2020 by plantuml (294,960 points)
selected Dec 17, 2020 by The-Lu
 
Best answer
Sure, this is fixed in last beta http://beta.plantuml.net/plantuml.jar
commented Dec 17, 2020 by The-Lu (63,920 points)

Thanks, That is good.

But for PNG output:

  • Could you put the background of the JSON sub-diagram transparent as for SVG output?

Thanks for your support,
Regards,
Th.

...