code: public void encodeListNullToNull(Writer writer, List<? extends T> list) throws IOException {
  		if (list == null) {
  			writer.write("null");
  			writer.flush();
  			return;
  		}
  		JsonUtil.startArray(writer);
  
  		int size = list.size();
  		for (int i = 0; i < size; i++) {
  
  			encodeNullToNull(writer, list.get(i));
  
  			if (i + 1 < size) {
  				JsonUtil.addSeparator(writer);
  			}
  		}
  
  		JsonUtil.endArray(writer);
  
  		writer.flush();
  	}
docs: Encodes the given {@link List} of values into the JSON format, and writes it using the given writer.<br>
  Writes "null" if null is given.
  
  @param writer {@link Writer} to be used for writing value
  @param list {@link List} of values to be encoded
  @throws IOException