cleans objects to be send to backend as body