PlantUML helps you to visualize the Json data.
helloworld.txt
@startjson { "id" : 1, "name" : "Krishna", "address" : { "state" : "Karnatka", "city" : "Bnagalore", "country" : "India" }, "hobbies" : [ "Playing cricket", "blogging" ], "emails" : [ { "id" : "[email protected]", "type" : "personal" }, { "id" : "[email protected]", "type" : "official" } ] } @endjson
Above snippet generate below diagram.
Point to note
a. To use json feature, json content should be placed in between @startjson and @endjson tags
Previous Next HomeThis post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here