Created 07-06-2018 11:54 PM
in the flowfile I have two attributes address and city, and both of them are returned empty. thank you for your help
Created 07-07-2018 12:10 AM
The format of the flowfile is Json
{
"Name": "XXX",
"Address": " ",
"city": " ",
"Country": "USA"
}
but I want it to show like this instead
{
"Name": "XXX",
"Address": "N/A ",
"city": " N/A",
"Country": "USA"
}
Created on 07-07-2018 12:17 AM - edited 08-18-2019 02:16 AM
Search for white space in double quotes and replace that with "N/A"
Search Value
"\s"
Replacement Value
"N/A"
Character Set
UTF-8
Maximum Buffer Size
1 MB //needs to change this value according to your flowfile size
Replacement Strategy
Regex Replace
Evaluation Mode
Entire text
Created 07-07-2018 02:36 AM
@ShuThank you very much