When I console.log(event.body) and perform a POST request by submitting a classical HTML form from the browser through AWS API Gateway->Lambda I get something like a query string:
event.body = first_name=Blabla&last_name=OOOOO&email=oooo%40aaa.com
when running the same function via serverless-offline plugin on my localhost I get:
event.body = {“first_name”:“Blabla”,“last_name”:“OOOOO”,“email”:“oooo@aaa.com”}
which looks like a JSON string.
I used same Node.js version (4.3.2).
Why is there this difference?