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
section using json_parse_array
.
How would I go about accessing the values
section?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire