UML class diragrm using JSON

0 votes
asked May 18, 2023 in Question / help by VA
Hi, I'm trying to create UML diagrams (with all UML grammar - relationships, attributes, scope etc.) from JSON message. Is it possible using PlantUML library? If so , please provide me a pointer/ details page. Thanks in advance. Kind regards VA

1 Answer

0 votes
answered May 18, 2023 by kirchsth (4,780 points)

Hi,

I used in a C4 sample json as input date. Do you mean something like this?

You could even import the data via an include, details can be found in plantuml-docu.

BR Helmit

 

commented May 18, 2023 by VA

Thanks for quick response. C4-sample - does it support UML relationships (like generalisation/ inheritance ... etc.)? I couldn't locate in C4 page. Please share the details. Kind regards, VA

commented May 18, 2023 by kirchsth (4,780 points)

C4 does not support UML (its a different model, and it uses only PlantUML for drawing).
For me the relevant part was that based on json as input data a concrete "plantuml diagram" is created.

related the link problem: behind my C4 Sample link you should reach https://github.com/plantuml-stdlib/C4-PlantUML/issues/200#issuecomment-1024938498


But for your concrete you have to define your own "template". documentation see plantuml-docu A more UML related samples could be https://plantuml.com/preprocessing-json#a1309faf41923e35  ("Full Example" section)
BR Helmut

commented May 18, 2023 by VA
Thanks a lot.
...