I am feeling kind of lost since I already struggled with some dependencies in my pom.xml, but what I am trying to do is to extract a single property from a JSON in my Spring Boot Application.
I have a FilmServiceClient, declared as FeignClient which fetches some data from IMDb, which looks as following:
{
"Title": "Kingsman: The Secret Service",
"Year": "2014",
"Rated": "R",
[...]
"Metascore": "60",
"imdbRating": "7.7",
"imdbVotes": "597,264",
[...]
}
In my FilmService, I would like to implement a getRating method which extracts the imdbRating
from the JSON as double attribute, which I eventually want to add to the Film entity in my DB.
I am grateful for every advise as well as the necessary dependencies and imports, thank you in advance!