Appreciate if you could help me for the best way to transform a result into json as below. We have a result like below, where we are getting an information on the employees