Ixudra\Curl\Builder::asJson PHP Method

asJson() public method

Configure the package to encode and decode the request data
public asJson ( boolean $asArray = false ) : Builder
$asArray boolean Indicates whether or not the data should be returned as an array. Default: false
return Builder
    public function asJson($asArray = false)
    {
        return $this->asJsonRequest()->asJsonResponse($asArray);
    }