I have a JSON file customer_records.json
in a Google Cloud Storage bucket called sales_data
.
In a Python file, I have the following list:
metrics_map = [{"State": "Austin", "City": "Texas"}, {"State": "New York", "City": "New York"}]
How can I upload this list into a Google Cloud Storage bucket and overwrite the customer_records.json
file?
I tried to use blob.upload_from_file(metrics_map)
, but this command does not take a list object.