Transforms JSON to Plant UML to help visualize your JSON data.
{
"name": "Product",
"properties": {
"id": {
"type": "number",
"description": "Product identifier",
"required": true
},
"name": {
"description": "Name of the product",
"type": "string",
"required": true
},
"price": {
"type": "number",
"minimum": 0,
"required": true
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
$ npm install -g json-to-plantuml
$ echo '{"foo": "bar"}' | json-to-plantuml
$ json-to-plantuml -f .\data\albumdata.json
$ echo '{"foo": "bar"}' | json-to-plantuml | java -jar plantuml.jar -pipe > topo.png
$ json-to-plantuml -f .\data\albumdata.json | java -jar plantuml.jar -pipe > topo.png
Java, Plant UML, GraphViz
plantuml-jar-lgpl-8048
plantuml-jar-lgpl-8049
$ npm install --save json-to-plantuml
var jsonToPlantUml = require('json-to-plantuml');
jsonToPlantUml('{"foo":"bar"}')
.then(console.log)
.catch(console.log);
@startuml
class "root" as root {
.. Properties ..
foo: bar
}
@enduml