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
Back To Top
Search