- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How structure unstructured in a value inside JSON with IFi
- Labels:
-
Apache NiFi
Created ‎07-30-2021 11:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I am new to NiFi, but I am trying to process an array of JSON data that I wish to then pass on for input to an Oracle Store Procedure.
However, there is an element in each array that holds data that is unstructured which has newline characters.
What I have been able to do with the data is to use the ReplaceText processor to remove the newline characters with nothing, and tried Evaluate JSON and Attributes to Json to try and restructure the data into new elements in the array. Unfortunately, I have not been able to get anything to work.
Is there a process that can help this?
Created on ‎08-01-2021 08:23 AM - edited ‎08-01-2021 08:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I understood correctly, you have additional manipulations you perform on the JSONs after you remove all the newline characters? The processor JoltTransformJSON might be worth checking out for that use-case. Here is a website that can help you test out jolt transformations.
In case you need it, here is a post about executing a stored procedure in an Oracle database.
