I have json like
and i want out put like this
in this array if group by on firstname and lastname and there count greater than 0 then email id added with firtname and last name and make full name and if count equal to 0 then emailid not aaded to fullname