Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24562

Enhance shell to output strict json

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
    • Server Tooling & Methods

      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.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            truetime hui DENG
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: