private String convertToString ( JsonNode jsonArrayNode ) { StringBuilder strBuilder = new StringBuilder ( ) ; Iterator < JsonNode > nodeIterator = jsonArrayNode . iterator ( ) ; while ( nodeIterator . hasNext ( ) ) { JsonNode jsonNode = ( JsonNode ) nodeIterator . next ( ) ; strBuilder . append ( jsonNode . asText ( ) ) ; if ( nodeIterator . hasNext ( ) ) { strBuilder . append ( ARRAY_VALUE_SEPARATOR ) ; } } return strBuilder . toString ( ) ; }
Converts the json array node to a String