0

I have below response from database and I need to convert it into the final json format using java 8 streams.

Response from Database: [ { "name": "Test1", "age": "33", "city": "City1", "status": "Insert" }, { "name": "Test1", "age": "33", "city": "City1", "status": "Update" }, { "name": "Test1", "age": "33", "city": "City1", "status": "Delete" } ]

Final Response: { "name": "Test1", "age": "33", "city": "Chennai", "status": [ "Insert", "Update", "Delete" ] }

1
  • Please provide enough code so others can better understand or reproduce the problem.
    – Community Bot
    Commented Jul 5 at 6:04

0

Browse other questions tagged or ask your own question.