Convert JSON to CSV/Avro Format

The Json-to-Csv-Converter block enables conversion from CSV or Avro formats to JSON and from JSON to CSV.

To configure the Json-to-Csv-Converter block, follow these steps:

      i. Select the file format to convert from in the Record Reader drop-down.

 The available formats are:

ReaderDescription
CSVReaderInput data is in CSV format.
AvroReaderInput data is in Avro format.
JSONTreeReaderInput data is in JSON format

      ii. Select the file format to convert to in the Record Writer drop-down.

The available formats are:

WriterDescription
CSVRecordSetWriterExport data to CSV format.
JsonRecordSetWriterExport data to JSON.
CustomerV2RecordSetWriterExport data to Customer V2 format.

 iii. Enter the parameter to group by under the groupBy field. For example, if the API has a parameter called orgId, enter the value in the text field to group the responses by the organisation ID.