docs: public static <T> void addScalarArray(JSONWriter writer, String field,
  			Collection<T> items, JsonObjectWriter<T> objWriter)
  			throws JSONException {
  		writer.key(field);
  		writer.array();
  		for (T item : items) {
  			objWriter.write(writer, item);
  		}
  		writer.endArray();
  	}