[ https://issues.apache.org/jira/browse/NIFI-4269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16136827#comment-16136827 ]
ASF GitHub Bot commented on NIFI-4269: -------------------------------------- Github user mattyb149 commented on a diff in the pull request: https://github.com/apache/nifi/pull/2063#discussion_r134485578 --- Diff: nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/GetMongo.java --- @@ -120,12 +123,30 @@ public ValidationResult validate(final String subject, final String value, final .addValidator(StandardValidators.POSITIVE_INTEGER_VALIDATOR) .build(); + static final String JSON_TYPE_EXTENDED = "Extended"; + static final String JSON_TYPE_NORMAL = "Normal"; + static final AllowableValue JSON_EXTENDED = new AllowableValue(JSON_TYPE_EXTENDED, "Extended JSON", --- End diff -- Perhaps replace the developer-specific doc (toJson() from the Java driver, e.g.) with user-level info about [MongoDB Extended JSON](https://docs.mongodb.com/manual/reference/mongodb-extended-json/)? This is a suggestion not a requirement :) > GetMongo should be able to provide pure JSON as well as "extended JSON" > ----------------------------------------------------------------------- > > Key: NIFI-4269 > URL: https://issues.apache.org/jira/browse/NIFI-4269 > Project: Apache NiFi > Issue Type: Improvement > Reporter: Mike Thomsen > > GetMongo currently only supports "extended JSON." That results in ugly JSON > like this: > { > "timestamp": { > "$date": LONG_TIMESTAMP > } > } > instead of something cleaner like this: > { > "timestamp": "2017-08-07T00:00:00Z" > } > GetMongo should be refactored to support both modes of JSON serialization. -- This message was sent by Atlassian JIRA (v6.4.14#64029)