Example usage for com.fasterxml.jackson.core JsonFactory setRootValueSeparator

List of usage examples for com.fasterxml.jackson.core JsonFactory setRootValueSeparator

Introduction

In this page you can find the example usage for com.fasterxml.jackson.core JsonFactory setRootValueSeparator.

Prototype

public JsonFactory setRootValueSeparator(String sep) 

Source Link

Document

Method that allows overriding String used for separating root-level JSON values (default is single space character)

Usage

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;
}