public class JsonRecordUnmarshaller extends JsonReaderSupport implements RecordUnmarshaller
RecordUnmarshaller
implementation for JSON formatted records.JsonRecordParserFactory
eof, in
Constructor and Description |
---|
JsonRecordUnmarshaller()
Constructs a new JsonRecordUnmarshaller.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
unmarshal(String text)
Unmarshals a single record.
|
isWhitespace, parseValue, readArray, readObject, readString, readUnicode, setReader
public JsonRecordUnmarshaller()
public Map<String,Object> unmarshal(String text) throws RecordIOException
RecordUnmarshaller
unmarshal
in interface RecordUnmarshaller
text
- the record text to unmarshalRecordIOException
- if the record is malformed and cannot be parsed