public class JsonRecordMarshaller extends JsonWriterSupport implements RecordMarshaller
RecordMarshaller
implementation for JSON formatted records.JsonRecordParserFactory
Constructor and Description |
---|
JsonRecordMarshaller()
Constructs a new JsonRecordMarshaller.
|
JsonRecordMarshaller(JsonParserConfiguration config)
Constructs a new JsonRecordMarshaller.
|
Modifier and Type | Method and Description |
---|---|
String |
marshal(Map<String,Object> map)
Marshals a single JSON object.
|
String |
marshal(Object record)
Marshals a single record object to a String.
|
getIndent, getLineSeparator, init, isPretty, write, writeArray, writeString, writeValue
public JsonRecordMarshaller()
public JsonRecordMarshaller(JsonParserConfiguration config)
config
- the JsonParserConfiguration
public String marshal(Object record)
RecordMarshaller
marshal
in interface RecordMarshaller
record
- the record object to marshal