Need help with the json object load into bigquery, I'm able to establish the connection but now able to load as it keep giving below error, any suggestion? tried both json as a string and object. both giving error
JSON object
d = {}
d['date'] = date_time()
d['status' ] = status
#a = json.dumps(d, indent = 2) # as a json string
qc=bigquery.Client(project=project_name)
dataset = qc.dataset(dataset)
table = dataset.table(table)
table_nm = qc.get_table(table)
qc.insert_rows_json(table_nm, d)
input dict : {"date": "2021-02-01-11.19.55", "status": "Pass "}
error: raise TypeError("json_rows argument should be a sequence of dicts") TypeError: json_rows argument should be a sequence of dicts