Hi. Just like CSVRecordReader, we have record reader service for JSON. It's called JsonTreeReader. You can use AvroSchemaRegistry and provide an Avro schema (usually generated through InferAvroSchema processor) for your JSON. Refer: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-record-serialization-services-nar/1.7.1/org.apache.nifi.json.JsonTreeReader/index.html
- Sivaprasanna On Thu, 30 Aug 2018 at 2:21 PM, l vic <[email protected]> wrote: > I need to save two different json messages according to json schemas > available for each to different relational database tables. > I saw this blog: > https://blogs.apache.org/nifi/entry/record-oriented-data-with-nifi > with example using CSVRecordReader for csv->json transformation. > but what would be RecordReader for schema-based transformation from json? > Is this a valid approach, or what would be best approach to solve this > problem? > I am using: nifi-1.7.1-RC1... > Thank you, >
