Class yii\httpclient\JsonParser

Inheritanceyii\httpclient\JsonParser » yii\base\BaseObject
Implementsyii\httpclient\ParserInterface
Available since version2.0

JsonParser parses HTTP message content as JSON.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
parse() Parses given HTTP response instance. yii\httpclient\JsonParser

Method Details

parse() public method

Parses given HTTP response instance.

public array parse ( yii\httpclient\Response $response )
$response yii\httpclient\Response

HTTP response instance.

return array

Parsed content data.