Convert Json array into csv using Nifi produces MapRecord
JsonTreeReader to CSV Writer produces MapRecord String for the inner Json.
Data
"id" : "aaaa",
"billingaddress" : {
"city" : null,
"country" : "CHINA",
"geocodeAccuracy" : null,
"latitude" : null,
"longitude" : null,
"postalCode" : null,
"state" : null,
"street" : null
}
Produces CSV out with MapRecord String attached.
aaaa|MapRecord[{country=CHINA, city=null, street=null, latitude=null, postalCode=null, geocodeAccuracy=null, state=null, longitude=null}]
Expected Output:
aaaa|{country=CHINA, city=null, street=null, latitude=null, postalCode=null, geocodeAccuracy=null, state=null, longitude=null}
I want to keep the inner JSON as-is in the CSV output. Any workarounds to this issue?

