question: 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 ( "]" ) ; }
target:  Helper method. Converts `errors` to JSON. 