Adds $request->get_json_params() to the code snippet in the /extending/adding/ page's Arguments section. This section already holds references to get_body_params, get_url_params and such but is missing a reference on how to handle JSON bodies from requests.
Adds a short paragraph specifying under which condition get_json_params returns the parsed JSON (mentioning the Content-type: application/json header).
Changes proposed by this PR
$request->get_json_params()
to the code snippet in the /extending/adding/ page's Arguments section. This section already holds references toget_body_params
,get_url_params
and such but is missing a reference on how to handle JSON bodies from requests.get_json_params
returns the parsed JSON (mentioning theContent-type: application/json
header).