title: Convert a JSON into CSV using jq
body: <p>I have a json file, which is stored in an environment variable temp.</p>
  
  <p><code>{
    "users": [
      {
        "username": "jack",
        "email": "jack@somewhere.com",
        "total running apps": "1",
        "api-mock-app": "0",
        "flogo": "1",
        "ipaas": "0",
        "nodejs-app": "0"
      },
      {
        "username": "jill",
        "email": "jill@somewhere.com",
        "total running apps": "1",
        "api-mock-app": "0",
        "flogo": "1",
        "ipaas": "0",
        "nodejs-app": "0"
      }
    ]
  }
  </code>
  When i am converting this JSON into CSV using this command</p>
  
  <pre><code>jq -r '.users[] | [.username, .email, .total running apps, .api-mock-app, .flogo, .ipaas, .nodejs-app] | @csv' &lt;&lt;&lt; $temp
  </code></pre>
  
  <p>I am getting following error.</p>
  
  <p>jq: error: syntax error, unexpected IDENT (Unix shell quoting issues?) at , line 1:
  .users[] | [.username, .email, .total running apps, .api-mock-app, .flogo, .ipaas, .nodejs-app] | @csv<br>
  jq: 1 compile error</p>
  
  <p>Any help Please?</p>