title: JQ query output in csv format
body: <p>I have been trying to extract a csv from the below json file using jq but not able to get so far. Does any experts out here can help?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "values": [
      {
        "resourceId": "xxxx-xxxx-xxx-8b16-xxxxxx",
        "property-contents": {
          "property-content": [
            { 
              "statKey": "config|name",
              "timestamps": [
                1517591034069
              ],
              "values": [
                "somebname.UNIVERSE.test.com"
              ]
            },
            { 
              "statKey": "summary|guest|ipAddress",
              "timestamps": [
                1517591034069
              ],
              "values": [
                "100.xx.5.xx"
              ]
            },
            { 
              "statKey": "summary|parentCluster",
              "timestamps": [
                1551120506024
              ],
              "values": [
                "UFO-UFO"
              ]
            },
            { 
              "statKey": "summary|parentDatacenter",
              "timestamps": [
                1551120806021
              ],
              "values": [
                "GALAXY-D123"
              ]
            },
                      { 
              "statKey": "summary|parentVcenter",
              "timestamps": [
                1517591334271
              ],
              "values": [
                "X-RAY123"
              ]
            },
            { 
              "statKey": "summary|runtime|powerState",
              "timestamps": [
                1517591034069
              ],
              "values": [
                "Powered On"
              ]
            }
          ]
        }
      },
      ..
      ...</code></pre>
  </div>
  </div>
  </p>
  
  <pre><code>xxx-xxxx-xxx-8b16-xxxxxx,somebname.UNIVERSE.test.com,100.xx.5.xx,UFO-UFO,GALAXY-D123,X-RAY123,Powered On
  </code></pre>
  
  
  
  <p>Expected o/p is:</p>
  
  <pre><code>xxx-xxxx-xxx-8b16-xxxxxx,somebname.UNIVERSE.test.com,100.xx.5.xx,UFO-UFO,GALAXY-D123,X-RAY123,Powered On
  </code></pre>