finish productDataToJSON function