Massage csv data into a specific json format