List of usage examples for com.fasterxml.jackson.core JsonFactory setRootValueSeparator
public JsonFactory setRootValueSeparator(String sep)
From source file:org.apache.orc.bench.convert.json.JsonWriter.java
public JsonWriter(Path path, TypeDescription schema, Configuration conf, CompressionKind compression) throws IOException { OutputStream file = path.getFileSystem(conf).create(path, true); outStream = new OutputStreamWriter(compression.create(file), StandardCharsets.UTF_8); JsonFactory factory = new JsonFactory(); factory.setRootValueSeparator("\n"); writer = factory.createGenerator(outStream); this.schema = schema; }