title: unable to parse json into csv using jq
body: <p>I have a JSON file that I want to convert into a CSV file using the jq in a shell script. I want to create a single row from this entire JSON file. I have to extract value from values. The row output should be something like </p>
  
  <p>null,642,642,412,0,null,null</p>
  
  <p><code>Here is my JSON file</code></p>
  
  <pre><code>{
       "data": [
     {
       "name": "exits",
       "period": "lifetime",
       "values": [
         {
           "value": {}
         }
       ],
       "title": "Exits",
       "description": "Number of times someone exited the carousel"
     },
     {
       "name": "impressions",
       "period": "lifetime",
       "values": [
         {
           "value": 642
         }
       ],
       "title": "Impressions",
       "description": "Total number of times the media object has been seen"
     },
     {
       "name": "reach",
       "period": "lifetime",
       "values": [
         {
           "value": 412
         }
       ],
       "title": "Reach",
       "description": "Total number of unique accounts that have seen the media object"
     },
     {
       "name": "replies",
       "period": "lifetime",
       "values": [
         {
           "value": 0
         }
       ],
       "title": "Replies",
       "description": "Total number of replies to the carousel"
     },
     {
       "name": "taps_forward",
       "period": "lifetime",
       "values": [
         {
           "value": {}
         }
       ],
       "title": "Taps Forward",
       "description": "Total number of taps to see this story's next photo or video"
     },
     {
       "name": "taps_back",
       "period": "lifetime",
       "values": [
         {
           "value": {}
         }
       ],
       "title": "Taps Back",
       "description": "Total number of taps to see this story's previous photo or video"
     }
   ]
  }
  </code></pre>
  
  <p>Hi tried using this jq command : 
  <code>.data | map(.values[].value) | @csv</code></p>
  
  <p>This is giving the following output: 
  jq: error (at :70): object ({}) is not valid in a csv row
  exit status 5</p>
  
  <p>So when I am getting this empty JSON object it is reflecting an error. </p>
  
  <p>Please Help!!</p>
  
  <p>The row output should be something like </p>
  
  <p>null,642,642,412,0,null,null</p>