This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import json | |
import urllib.parse | |
import boto3 | |
s3 = boto3.client('s3') | |
sns = boto3.client('sns') | |
def lambda_handler(event, context): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Originally found in https://towardsdatascience.com/flattening-json-objects-in-python-f5343c794b10 | |
edited to shorten key names as far as possible. | |
''' | |
import json | |
json_example = { | |
"glossary": { | |
"title": "example glossary", |
NewerOlder