What is the advantage of getParsedBody over $_POST?

I’m migrating my app from Slim 2 to 4.

And I saw that there is $request->getParsedBody function to get data sent with $_POST.

What is the advantage of using $request->getParsedBody() instead of using $_POST?

Another question, how do I get data coming from $_GET?

The request object implements the PSR-7 ServerRequestInterface with which you can inspect and manipulate the HTTP request method, headers, and body in a OOP fashion.

You can get the query parameters as an associative array on the Request object using $params = $request->getQueryParams();