Answers for "download json file from s3"

0

download json file from s3

import boto3
import json

s3 = boto3.resource('s3')

content_object = s3.Object('test', 'sample_json.txt')
file_content = content_object.get()['Body'].read().decode('utf-8')
json_content = json.loads(file_content)
print(json_content['Details'])
# >> Something
Posted by: Guest on August-01-2020

Code answers related to "download json file from s3"

Code answers related to "Javascript"

Browse Popular Code Answers by Language