Class JsonTreeReader

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.serialization.SchemaRegistryService
org.apache.nifi.json.JsonTreeReader
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, RecordReaderFactory
Direct Known Subclasses:
YamlTreeReader

@Tags({"json","tree","record","reader","parser"}) @CapabilityDescription("Parses JSON into individual Record objects. While the reader expects each record to be well-formed JSON, the content of a FlowFile may consist of many records, each as a well-formed JSON array or JSON object with optional whitespace between them, such as the common \'JSON-per-line\' format. If an array is encountered, each element in that array will be treated as a separate record. If the schema that is configured contains a field that is not present in the JSON, a null value will be used. If the JSON contains a field that is not present in the schema, that field will be skipped. See the Usage of the Controller Service for more information and examples.") @SeeAlso(JsonPathReader.class) public class JsonTreeReader extends SchemaRegistryService implements RecordReaderFactory
  • Field Details

    • dateFormat

      protected volatile String dateFormat
    • timeFormat

      protected volatile String timeFormat
    • timestampFormat

      protected volatile String timestampFormat
    • startingFieldName

      protected volatile String startingFieldName
    • startingFieldStrategy

      protected volatile StartingFieldStrategy startingFieldStrategy
    • schemaApplicationStrategy

      protected volatile SchemaApplicationStrategy schemaApplicationStrategy
    • tokenParserFactory

      protected volatile TokenParserFactory tokenParserFactory
    • STARTING_FIELD_STRATEGY

      public static final org.apache.nifi.components.PropertyDescriptor STARTING_FIELD_STRATEGY
    • STARTING_FIELD_NAME

      public static final org.apache.nifi.components.PropertyDescriptor STARTING_FIELD_NAME
    • SCHEMA_APPLICATION_STRATEGY

      public static final org.apache.nifi.components.PropertyDescriptor SCHEMA_APPLICATION_STRATEGY
  • Constructor Details

    • JsonTreeReader

      public JsonTreeReader()
  • Method Details