translate mongoose int responses to json