Github user mattyb149 commented on the issue:
https://github.com/apache/nifi/pull/2063
+1 LGTM, built and ran unit tests, and tried with a live MongoDB instance,
verified both JSON modes produce the expected output. Thanks for the
improvement! Merging to master---
