byrage byrage - 2 months ago 13
Node.js Question

How can extract special character parameter in AWS Lambda?

I am testing AWS Lambda by Node.js 4.3.
when I request POST method in start with special character Parameters.

"@type": "Test"

then print log is normally working, but Lambda dose not recognize '@type' params.

exports.handler = (event, context, callback) => {
var type = event.@type;
callback(null, type);

How can I fix it?


You could always use the non-groovy hipster syntax: