Class JsonNodeReader

java.lang.Object
org.apache.druid.data.input.IntermediateRowParsingReader<com.fasterxml.jackson.databind.JsonNode>
org.apache.druid.data.input.impl.JsonNodeReader
All Implemented Interfaces:
InputEntityReader

public class JsonNodeReader extends IntermediateRowParsingReader<com.fasterxml.jackson.databind.JsonNode>
In contrast to JsonLineReader which processes input text line by line independently, this class tries to split the input into a list of JsonNode objects, and then parses each JsonNode independently into an InputRow.

The input text can be: 1. a JSON string of an object in a line or multiple lines(such as pretty-printed JSON text) 2. multiple JSON object strings concatenated by white space character(s)

If an input string contains invalid JSON syntax, any valid JSON objects found prior to encountering the invalid syntax will be successfully parsed, but parsing will not continue after the invalid syntax.