Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
NiFi - CSVReader can't parse the text with " and /
Labels:
- Labels:
-
Apache NiFi
New Contributor
Created ‎01-04-2021 10:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Master Guru
Created ‎01-05-2021 01:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
