I am working in spring boot. For the below API request,
{
"site":{
"name":"name",
"code":"code",
"url":{
"google-url":[ {"url":"http://example.url1.com" },
{"url":"http://example2.url2.com"}],
"fb-url":[ {"url":"http://www.example.com"} ,
{"url":"http://www.exampl2e.com"} ]
},
"description":"site description",
"status":"BETA"
}
}
How can the all the URL's be extracted so that it can be validated before storing in db.
Any help will be appreciated!