node-plantuml icon indicating copy to clipboard operation
node-plantuml copied to clipboard

json to UML doesn't seem to work

Open BalduinLandolt opened this issue 4 years ago • 3 comments

I use PlantUML among other things to visualize json data, as described here. The preview in VS Code works just fine.

However, to get this into my project documentation, I want to turn the .puml into .svg and include it in markdown files.
For this I use node-plantuml, and it worked just fine with my class diagrams, calling puml generate -s api-example.puml -o api-example.svg.

However, with my json data, inside the .uml I have:

@startjson
{
  ...
}
@endjson

This should be valid, but in the output .svg I get no visualization, but rather the text No @startuml found.

BalduinLandolt avatar Mar 16 '21 15:03 BalduinLandolt

@vowstar I noticed that node-plantuml-back supports this feature, but the result is still bugged. I think bumping the plantumlVersion to something a bit more recent would fix it.
(manually replacing the .jar with the latest from sourceforge fixed it for me, but that's a manual step I would like to avoid in my setup; especially if I want to generate all UMLs as SVGs in CI, that would obviously not work)

BalduinLandolt avatar Mar 19 '21 14:03 BalduinLandolt

@vowstar I noticed that node-plantuml-back supports this feature, but the result is still bugged. I think bumping the plantumlVersion to something a bit more recent would fix it. (manually replacing the .jar with the latest from sourceforge fixed it for me, but that's a manual step I would like to avoid in my setup; especially if I want to generate all UMLs as SVGs in CI, that would obviously not work)

Sure. After testing, the old version does not work, the latest version is no problem.

vowstar avatar Mar 24 '21 05:03 vowstar

can i use startjson with load json

ninfantr avatar Jul 06 '23 13:07 ninfantr