Is there a way with the request service to read POSTed JSON from php://input
?
1 Answer
Yes, you can use getRestParams() like so: $input = craft()->request->getRestParams()
A bit confusing naming there, which is why it's changing to getBodyParams()
in Yii 2.