private void writeJsonArray ( String arrayName , List < String > values ) throws JsonGenerationException , IOException { writeJsonArrayStart ( arrayName ) ; for ( String value : values ) generator . writeString ( value ) ; writeJsonArrayEnd ( ) ; }
Writes an array along with its values to the JSONGenerator .