I myself found the answer for this using the bigquery (bq) command line tool,
bq --format=json query "select * from calls.details limit 10"
when using bq, if we do not provide the -quiet parameter, then it returns a response with additional text (status of a large request job), which causes a problem when parsing Json, as shown below.
Waiting on bqjob_r36676afce1bcba8d_0000014f1ba0e36b_1 ... (0s) Current status: DONE [{"status":null,"userfield":null,"answer_stamp":"2015-05-01 00:00:04","term_roid":"a"}]
That's why I switched to using google api to retrieve data and again, which does not give you column names along with the data. But I found that we can remove this extra text using the -quiet option for the bq command, for example
bq --quiet --format=json query "select * from calls.details limit 10"
source share