protected void writeArray(JsonArray array) throws IOException { writeBeginArray(); boolean first = true; for (JsonValue value : array) { if (!first) { writeArrayValueSeparator(); } value.write(this); first = false; } writeEndArray(); }