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

PlantUML: Customize style or rendering of json document using style tag

Using

styleTag.txt

@startjson



#highlight "name"
#highlight "address" / "city"
#highlight "hobbies" / "1"
#highlight "emails" / "0" / "id"

{
	"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.

 


 

 

  

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: Customize style or rendering of json document using style tag

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×