diff --git a/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java b/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java index f0f1630fb3..33951d7c8a 100644 --- a/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java +++ b/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java @@ -138,7 +138,7 @@ public class ConvertAvroToJSON extends AbstractProcessor { if (containerOption.equals(CONTAINER_ARRAY)) { out.write(','); } else { - out.write(System.lineSeparator().getBytes(StandardCharsets.UTF_8)); + out.write('\n'); } final GenericRecord nextRecord = reader.next(record);