src/ServerRequest.php
public function getParsedBody()
	{
		if ($this->parsedBody !== null) {
			return $this->parsedBody;
		}

		if ($this->getMethod() === 'POST' && ($this->hasContentType('application/x-www-form-urlencoded') || $this->hasContentType('multipart/form-data'))) {
			return $this->postParams;
		}

		if ($this->hasContentType('application/json')) {
			return json_decode((string) $this->getBody());
		}

		return null;
	}
public function getParsedBody()
	{
		if ($this->parsedBody !== null) {
			return $this->parsedBody;
		}

		if ($this->getMethod() === 'POST' && ($this->hasContentType('application/x-www-form-urlencoded') || $this->hasContentType('multipart/form-data'))) {
			return $this->postParams;
		}

		if ($this->hasContentType('application/json')) {
			return json_decode((string) $this->getBody());
		}

		return null;
	}
{@inheritdoc}