Below is what I would like to input as my testing event and is what my lambda python function knows how to process.
{
"body": '{"email":"[email protected]","password":"Example1"}',
"path": "/SignIn"
}
However, you can't configure this as a testing event in aws lambda because you get the following–somewhat justified–error:
There is an error in your JSON event. Please correct it before saving.
It is somewhat justified because there shouldn't be any single quotes in JSON. However, it won't work if I use all double quotes either.
Any ideas? Loopholes?
"{\"email\":\"[email protected]\",\"password\":\"Example1\"}". Otherwise, just get rid of the single quotes.