Trouble parsing JSON with getBodyParams()
Got in touch with P&amp;T support and got the following response back:


  We don't currently support parsing JSON via getBodyParams(), however I'm looking into it and looks like Yii can be configured to support that, when the request's Content-Type header is set to application/json. We would need to enable that feature ourselves though.
  
  In the meantime you could do:

$body = Craft::$app-&gt;request-&gt;getRawBody();
$data = craft\helpers\Json::decode($body);