public void println() {
        out.write('\n');
        for (int i = 0; i < indentCount; ++i) {
            out.write(indent);
        }
    }
Set global date format pattern in FastJsonConfig

@param dateFormatPattern global date format pattern
src/main/java/com/alibaba/fastjson/serializer/JSONSerializer.java