change json to array for product serialize