[
https://issues.apache.org/jira/browse/NIFI-3546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15903751#comment-15903751
]
Matt Gilman commented on NIFI-3546:
-----------------------------------
I believe the conversion is happening when the json stream is formatted here
[1]. I'm not 100% but I'd start there and look for options with the
ObjectMapper and/or the default pretty printer on the next line.
[1]
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-content-viewer/src/main/java/org/apache/nifi/web/StandardContentViewerController.java#L62
> JSON Formatted view of content will convert numbers to Scientific Format
> ------------------------------------------------------------------------
>
> Key: NIFI-3546
> URL: https://issues.apache.org/jira/browse/NIFI-3546
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core UI
> Affects Versions: 1.1.1
> Reporter: Aldrin Piri
> Priority: Trivial
>
> When using the content viewer, I was evaluating some data that was in JSON
> format. In the original view, I had the data as expected:
> {code}
> {"timestamp": 1488474750276.346, "name": "longitude", "value": -83.23728}
> {code}
> However, when switching to the formatted view, the timestamp is converted
> {code}
> {
> "timestamp" : 1.488474750276346E12,
> "name" : "longitude",
> "value" : -83.23728
> }
> {code}
> This can be confusing as it may seem as though the content format is
> different than anticipated.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)