Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Turn off json values rounding in NiFi

New Contributor

Hello,

 

I have NiFi flow with EvaluateJsonPath that read a content of FlowFile with json to Data attribute. But numeric values of json are changed, i.e.:

GenerateFlowFile
{
"Amount1": 999999999999999999.99,
"Amount2": 999999999.99
}

->
EvaluateJsonPath
Data $
->
Data
{"Amount1":1.0E18,"Amount2":9.9999999999E8}

How do I stop NiFi from rounding off and changing json numbers? Tested on NiFi 1.15/1.19.

Thanks.

0 REPLIES 0
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.