Getting $_REQUEST (like POST and GET) as JSON with PHP

JSON is the most practical and fastest way to get data. PHP provides encode and decode feature for JSON object. However, you cannot directly fetch data as application-json.
That's why you can't fetch data with the JSON standard over $_GET and $_POST. We will...