Send JSON



examples/aws/hello_world_json.py
import json

def lambda_handler(event, context):
    return {
        'statusCode': 200,
        'headers': { 'Content-Type': 'application/json' },
        'body': json.dumps({ 'message': 'Hello World!' })
    }

{"message": "Hello World!"}