hello @geraldss ,
I am not able to convert the JSON to a csv.
Do you have any script prepared in python, shell script ?
The JSON I have looks like this
cbq> select Col1 , Col2, Col3 , Col4, Col5 from test
WHERE type=“type1” and CLOCK_STR(“2015-07-16”);
{
“requestID”: “d09be01d-2f11-47f2-90bc-fbed6c3a6704”,
“signature”: {
“Col1”: “json”,
“Col2”: “json”,
“Col3”: “json”,
“Col4”: “json”,
“Col5”: “json”
},
“results”: [
{
“Col1”: “Value1”,
“Col2”: Val A",
“Col3”: ValA-12",
“Col4”: 4,
“Col5”: “user1”
},
{
“Col1”: “Value1”,
“Col2”: Val E",
“Col3”: ValE-1",
“Col4”: 1,
“Col5”: “user20”
},
{
“Col1”: “Value1”,
“Col2”: Val C",
“Col3”: ValC-3",
“Col4”: 1,
“Col5”: “user1”
},
{
“Col1”: “Value1”,
“Col2”: Val F",
“Col3”: ValF-20",
“Col4”: 1,
“Col5”: “user20”
},
{
“Col1”: “Value1”,
“Col2”: Val B",
“Col3”: ValB-1",
“Col4”: 5,
“Col5”: “user1”
},
{
“Col1”: “Value1”,
“Col2”: Val D",
“Col3”: ValD-12",
“Col4”: 4,
“Col5”: “user20”
}
],
“status”: “success”,
“metrics”: {
“elapsedTime”: “317.825051ms”,
“executionTime”: “317.62925ms”,
“resultCount”: 6,
“resultSize”: 1158
}
}