Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

[NIFI] Parsing multi delimiter attribute into JSON

[NIFI] Parsing multi delimiter attribute into JSON

Explorer

I have a flow attribute which has multiple separators formetted as:

header1|header2|header3~key1=value1~key2=value2~key3=value3

How can I convert this to JSON as:

"headervalue1" : "header1",
"headervalue2" : "header2",
"headervalue3" : "header3",
"key1" : "value1",
"key2" : "value2",
"key3" : "value3"

Thanks.

Don't have an account?
Coming from Hortonworks? Activate your account here