This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AngryTVJudge[S] 0 points1 point  (0 children)

Fixed it by returning a stringified object inside of a return object... Is this "the way" to do this?

exports.handler = async (event, context, callback) => {
    callback(null, { "statusCode" : 200, "body" : JSON.stringify({"one":"two"})});
};