Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

PlantUML: Working with JSON data

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                                                    Home


This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

PlantUML: Working with JSON data

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×