Parsing JSON array in C
问题 I have the following JSON returned from the server, and I'm trying to access to the Values (timestamp/data): { "queries": [ { "sample_size": 1, "results": [ { "name": "data", "group_by": [ { "name": "type", "type": "number" } ], "tags": { "hostname": [ "host" ] }, "values": [ [ 1438775895302, 143 ] ] } ] } ] } I am using json-c, and am using slightly modified version of the complete json parser. However I keep getting a segmentation fault (core dumped) when attempting to access the values