How to access a JSON request body of a POST request in Slim?
问题 I'm just a newbie in the Slim framework. I've written one API using Slim framework. A POST request is coming to this API from an iPhone app. This POST request is in JSON format. But I'm not able to access the POST parameters that are sent in a request from iPhone. When I tried to print the POST parameters' values I got "null" for every parameter. $allPostVars = $application->request->post(); //Always I get null Then I tried to get the body of a coming request, convert the body into JSON