Reading a JSON File
Learn how to read a JSON file stored in a Filebase bucket using Python & Boto3.
What is JSON?
JSON is a file format featuring an open standard and interchangeable data format that uses human-readable text to store and transmit data objects that are formatted as arrays or value pairs.
Read below to learn how to use a Python script with Boto3 to read the contents of a JSON file that is stored in a Filebase bucket.
1. Create a file called json_read.py
with the following contents:
json_read.py
with the following contents:2. Replace the following values:
Aws_access_key_id: Your Filebase Access Key
Aws_secret_access_key: Your Filebase Secret Key
Bucket: Your Filebase bucket name
Key: Your JSON file to be read
Replace ‘Details’ with the name of the property in your JSON file to read
3. Run the Python script to return the requested JSON property content.
Last updated