Class yii\httpclient\JsonParser
| Inheritance | yii\httpclient\JsonParser » yii\base\BaseObject |
|---|---|
| Implements | yii\httpclient\ParserInterface |
| Available since version | 2.0 |
JsonParser parses HTTP message content as JSON.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $asArray | boolean | Whether to return objects in terms of associative arrays. | yii\httpclient\JsonParser |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| parse() | Parses given HTTP response instance. | yii\httpclient\JsonParser |
Property Details
Method Details
Parses given HTTP response instance.
| public mixed parse ( yii\httpclient\Response $response ) | ||
| $response | yii\httpclient\Response | HTTP response instance. |
| return | mixed | Parsed content data. |
|---|---|---|