How to work with JSON in Request Object

Hi!

You don’t need a custom JsonBodyParser, because you can use the PSR-7 Request object’s getParsedBody() method the get the JSON data as array.

$data = (array)$request->getParsedBody();