[
https://issues.apache.org/jira/browse/NIFI-2359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15406373#comment-15406373
]
Kirk Tarou commented on NIFI-2359:
----------------------------------
Instead of rolling you own isNumber method, why not use NumberUtils.isNumber?
> Improve AttributesToJSON so it can output booleans, numbers and datetimes
> -------------------------------------------------------------------------
>
> Key: NIFI-2359
> URL: https://issues.apache.org/jira/browse/NIFI-2359
> Project: Apache NiFi
> Issue Type: Improvement
> Affects Versions: 0.7.0
> Reporter: Tristan Morris
> Priority: Minor
> Labels: beginner
> Attachments:
> 0001-NIFI-2359-Added-support-to-AttributesToJSON-to-conve.patch
>
>
> The AttributesToJSON processor only outputs string content
> {
> "isAwesome": "true"
> }
> Rather than
> {
> "isAwesome": true
> }
> It would be useful for AttributesToJSON to output json native types like
> booleans, numbers and datetimes
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)