private void errorsToJson(Errors errors,StringBuilder result){
  result.append("\"errors\":[");
  if (errors != null && errors.hasErrors()) {
    boolean first=true;
    for (    final String text : errors.getTexts()) {
      if (!first) {
        result.append(",");
      }
      first=false;
      result.append(JsonBuilder.quote(text));
    }
  }
  result.append("]");
}

private void errorsToJson ( Errors errors , StringBuilder result ) { result . append ( "\"errors\":[" ) ; if ( errors != null && errors . hasErrors ( ) ) { boolean first = true ; for ( final String text : errors . getTexts ( ) ) { if ( ! first ) { result . append ( "," ) ; } first = false ; result . append ( JsonBuilder . quote ( text ) ) ; } } result . append ( "]" ) ; }
helper method . converts ` errors ` to json .
