May-12-2019, 10:12 AM
Hi,
Trying to nail my return statement and need to make sure my body message is in correct json format.
My attempt so far
Any assistance is gratefully appreciated
Thanks
Todd
Trying to nail my return statement and need to make sure my body message is in correct json format.
My attempt so far
return { 'statusCode': 200, 'headers': {'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json'}, 'body': {'message': 'Successfully inserted'} }It's only the body part that I haven't got right.
Any assistance is gratefully appreciated
Thanks
Todd