Output of the "Getting the JSON request body as an array with Symfony" Symfony snippet

Environment:

  • Strangebuzz Snippet VM: 6.4.2
  • PHP: 8.3
  • Symfony: 6.4.6

Code execution output:

Request body is empty.

New request body is not empty and valid:
array(1) {
  ["foo"]=>
  string(3) "bar"
}