title: Parsing JSON array in C
body: <p>I have the following JSON returned from the server, and I'm trying to access to the <code>Values</code> (timestamp/data):</p>
  
  <pre><code>{
     "queries": [
       {
         "sample_size": 1,
         "results": [
           {
             "name": "data",
             "group_by": [
               {
                 "name": "type",
                 "type": "number"
               }
             ],
             "tags": {
               "hostname": [
                 "host"
               ]
             },
             "values": [
               [
                 1438775895302,
                 143
               ]
             ]
           }
         ]
       }
     ]
   }
  </code></pre>
  
  <p>I am using <a href="https://github.com/json-c/json-c" rel="nofollow" title="json-c">json-c</a>, and am using slightly modified version of the <a href="https://linuxprograms.wordpress.com/2010/08/19/json_parser_json-c/" rel="nofollow" title="complete json parser">complete json parser</a>. However I keep getting a <code>segmentation fault (core dumped)</code> when attempting to access the <code>values</code> section using <code>json_parse_array</code>.</p>
  
  <p>How would I go about accessing the <code>values</code> section?</p>