Support Questions
Find answers, ask questions, and share your expertise

NiFi - CSVReader can't parse the text with " and /

New Contributor

I use NiFi 1.12.1. I would like to transfer a single line to a json

the input flowfile content is 

 

 

 

abc"d/

 

 

 

 

I would like to convert it to json, the format like 

 

 

 

{"content" : "abc/"d///"}

 

 

 

 

I used the convertrecord processor with CSVReader and JsonRecordSetWriter. But it removes backslash in  the output. Does anyone know how to solve the issue?

1 REPLY 1

Super Guru

You can try some of the different settings.  https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-record-serialization-services...

 

You can also try to clean up that text first with some preprocessing JOLT