Question
Apache NiFi. ConvertRecord XML to JSON. interpret all values as text
Hi all!
i faced out with the problem.
I need to convert xml file to json.
here is my flow


ConvertRecord

XMLReader

JsonRecordSetWritter
Everything is ok, but the problem is in convetring digit-values
for example
xml data
<document_code>
<code>000</code>
</document_code>
converted to
"document_code": {
"code": 0
}
another one is:
<service-code>0012388833456</service-code>
converted to
"service-code": 12388833456
this is critical data, so i want Ni-Fi to convert them as string.
all values as string - is what i need.
Help please.

