Commit 00614b46 by Carsten Brandt

docs about JsonParser

parent 46d9518c
......@@ -13,6 +13,16 @@ use yii\helpers\Json;
/**
* Parses a raw HTTP request using [[\yii\helpers\Json::decode()]]
*
* To enable parsing for JSON requests you can configure [[Request::parsers]] using this class:
*
* ```php
* 'request' => [
* 'parsers' => [
* 'application/json' => 'yii\web\JsonParser',
* ]
* ]
* ```
*
* @author Dan Schmidt <danschmidt5189@gmail.com>
* @since 2.0
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment