mongodb outputs extended json in Shell, while outputs strict json in other tools (mongoexport,api etc.), there is no interoperability among these channels, no help functions or switch options.
general shell output is very important for re-edit the content. but extended json can't be parsed by JSON.parse() in JAVA driver, it's also can't be validated throught other json editors, can't be understanded by other json applications. you almost don't know which case can be benefited from extended json format. just for human kind looks it more concisely?
we i prepare test case which need data from mongodb, I must revise every document shown in shell, otherwise I need connect to remove machine, using dbexport one line from huge database, and ftp the file back to my workspace? all these additional works could have been done by only one copy-paste.
- related to
-
SERVER-19171 Shell does not always use extended JSON Shell Syntax
- Closed
-
SERVER-13209 Ensure extended shell JSON ouput format round trips through the shell
- Closed