ilovetolearn
ilovetolearn

Reputation: 2060

NiFi key value pair text to json/avro

I have the following key value pair data. How do I convert them to json or avro format?

col_name1=a col_name2=b col_name3=c

Upvotes: 0

Views: 375

Answers (1)

Andy
Andy

Reputation: 14184

You can treat this as CSV text (using a space ' ' as the delimiter) and use the ConvertRecord processor to convert from CSV to JSON or Avro.

Upvotes: 1

Related Questions