Well I have a Mysql query that output like this the example below.
I need to convert this data into Json without repeating the names, dates and pruchase_id when they