title: Is there a way to standardize mongosh JSON output?
body: <p>MongoDB upgraded their command-line interface (formerly <em>mongo</em>, now <em>mongosh</em>).  Before, the <em>mongo</em> command output was in proper JSON, the kind <em>jq</em> could ingest.</p>
  <p>For example:</p>
  <pre><code>{ &quot;abc&quot; : &quot;hello&quot; }
  </code></pre>
  <p>The new <em>mongosh</em> command now outputs stuff like:</p>
  <pre><code>{ abc: 'hello' }
  </code></pre>
  <p>...which can't be parsed by <em>jq</em>.</p>
  <p>Is there a way to standardize <em>mongosh</em> to output standard JSON?</p>
  <p>If not, is there any shell command that filters &quot;incorrect but coherent&quot; JSON (from stdin) and normalizes it into a standard form (to stdout)?</p>