title: jq not parsing json with spaces
body: <p>I’m trying to run the following command that reads JSON from a file and formats it with jq :</p>
  
  <pre><code>jq -n -r --arg m $(&lt;$1) '$m | fromjson | {records:[{value:.}]}'
  </code></pre>
  
  <p>It produces the desired output when the input JSON does not contain spaces, such as <code>{"test":"helloworld"}</code> :</p>
  
  <pre><code>{
    "records": [
      {
         "value": {
          "test": "helloworld"
        }
       }
    ]
  }
  </code></pre>
  
  <p>However, for an input like <code>{"test":"hello world"}</code> it would give the following error:</p>
  
  <pre><code>jq: error: syntax error, unexpected QQSTRING_START, expecting $end (Unix shell quoting issues?) at &lt;top-level&gt;, line 1:
  world"}     
  jq: 1 compile error
  </code></pre>
  
  <p>Can’t figure out what’s causing this problem.</p>
  
  <p>Thanks for any help :) </p>