title: jq accepts invalid json input when it should throw an error
body: <p>I am having problem to validate json string.
  i am using below code</p>
  <pre><code>if jq -e . &gt;/dev/null 2&gt;&amp;1 &lt;&lt;&lt;&quot;$json_string&quot;; then
          echo &quot;Parsed JSON successfully and got something other than false/null&quot;
      else
          echo &quot;Failed to parse JSON, or got false/null&quot;
      fi
  </code></pre>
  <p>This does not work for <code>json_string={&quot;fruit&quot;:{&quot;name&quot;:&quot;app</code>. this still shows <strong>Parsed JSON successfully and got something other than false/null</strong> where as the json string is incomplete.</p>