Question

How can I get POST request JSON body?

Hi,

What is the best way to get the JSON content of a POST request in a serverless function. The traditional way does not work. (traditional function for this is file_get_contents(‘php://input’))

Has anyone done this successfully? TIA


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer