I am trying to segregate the JSON data using Akka Stream. I have taken out the key tags for the segregation from the JSON data and made a case class
Eg:- Bucket1(id:String, category:String)
Bucket1(1, type1) Bucket(2, type2) Bucket(1, type3)
Now I want to segregate on the basis of id.
I want an output like Person with id 1 has type1 and type3. If a person has same id then I want to display all its types.
How can I implement such logic?