private static void listToWriter ( List < ? > list , JsonWriter writer ) throws IOException { writer . beginArray ( ) ; for ( Object value : list ) { writeValue ( value , writer ) ; } writer . endArray ( ) ; }
Print the json representation of a List to the given writer .