code: func removeJSONRevision(jsonValue *[]byte) error {
  	jsonVal, err := castToJSON(*jsonValue)
  	if err != nil {
  		logger.Errorf("Failed to unmarshal couchdb JSON data: %+v", err)
  		return err
  	}
  	jsonVal.removeRevField()
  	if *jsonValue, err = jsonVal.toBytes(); err != nil {
  		logger.Errorf("Failed to marshal couchdb JSON data: %+v", err)
  	}
  	return err
  }
docs: // removeJSONRevision removes the "_rev" if this is a JSON