skip to Main Content

How to map JSON in a Java object

I'm trying to transform this JSON in a Java object. But I'm struggling with this conversion. { "id": "c01cede4-cd45-11eb-b8bc-0242ac130003", "publisherId": "nintendo", "name": "Mario", "timePlayed": { "2023-05-01": 10, "2023-05-02": 2, "2023-05-03": 3, "2023-05-04": 4 } } First, I created a class…

VIEW QUESTION

Getting backlash on JSON

What would be the Java POJO class for below "datapoints"? datapoints are not constants their values and quantity and counts can increase or decrease. This below is the output I'm getting from my code where I get backslash. [ {…

VIEW QUESTION

Json – how to pull movie id(tmdb api) , @PathVarible

I started my first spring boot project. That's why it's not enough. Already looked for stack overflows and googling. I'd appreciate your help. **tmdb api Query For Details ** 'https://api.themoviedb.org/3/movie/343611?api_key=87bad1aa...~' movie_id : 343611 Controller import com.example.joyit.service.MovieSearchService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j;…

VIEW QUESTION
Back To Top
Search