protected JsonWriter property(String key, Iterable<?> iterable) throws IOException {
      Preconditions.checkArgument(!inArray(), "Cannot write a property inside an array.");
      beginArray(key);
      for (Object o : iterable) {
         value(o);
      }
      endArray();
      return this;
   }
protected JsonWriter property ( String key , Iterable < ? > iterable ) throws IOException { Preconditions . checkArgument ( ! inArray ( ) , "Cannot write a property inside an array." ) ; beginArray ( key ) ; for ( Object o : iterable ) { value ( o ) ; } endArray ( ) ; return this ; }
Writes an iterable with the given key name

@param key      the key name for the collection
@param iterable the iterable to be written
@return This structured writer
@throws IOException Something went wrong writing