Validate html tags in json file using java - whats the best way? -


is there java library, java framework, or java example supply url, www.test.com/storage/test.json, , validate html elements, html opening , closing tags, can sure when changes made json file, web page ( www.test.com/content) reads content still render?

as little background, can considered novice when comes java development. looking create automated script ran via jenkins validate json file. far, have been able identify placeholders , verify not blank, and/or numeric example. have been able identify type of links may sit in json file , make sure valid using java.net.httpurlconnection. next goal validate html tags formatted.

thank

edit/example of json file:

    {"list":[{      "type":"example",      "id":"123",      "body": "<p><i>text</i></p> 

it not clear me want do, if question library validate html elements coming string in java, 2 suggest jcabi-w3c validator , nu html5 validator.

they should play in validating html entities.