set totalPrice in json and remove redundant json value