This API Gateway mapping template parses
form body data (encoded as x-www-form-urlencoded) to JSON key-value pairs. It's handy when
your Lambda function needs to accept data POSTed from a HTML form.
This project is heavily influenced by the work of avilewin, whose code is available the AWS forums.
xwwwformurlencoded-2-json correctly parses the following form data strings:
key=valuekey=value&foo=barkey=key=value&foo=key=value&foo=&hello=world(and so on)
Further, xwwwformurlencoded-2-json does the Right Thing by ignoring these malformed form data strings:
=&=valuekey=value&
Christian E Willman github@willman.io
MIT