Java earliest and latest data set merge and create new JSON object
I have 2 queries that return the same object for earliest and latest datasets. eg : earliestDataset = [ {'id' : 123, 'highlights': 2, 'created_date': 2024-01-01, 'saves':5, 'wins':3}, {'id' : 124, 'highlights': 3, 'created_date': 2024-01-03, 'saves':2, 'wins':1}, {'id' : 253,…