How to parse POST Request

This question has been answered before but none of the answers worked for me.

Here is what I have currently.

var queryString = util.inspect(event.body);

If I do this I see the results from Twilio that look like this in the body…


How do I convert all these parameters into variables I can work with and do logic from thereafter?

@x11joe It’s just a regular query string format. You can use or any NPM package that can decode a query string.

Thanks for your reply I found a good library QS that fixes this really nicely. I’m still new to JS, coming from PHP.