public function parseJSON($method, array $args)
    {
        $http = $this->getHttp();

        $contents = $http->parseJSON(call_user_func_array([$http, $method], $args));

        $this->checkAndThrow($contents);

        return new Collection($contents);
    }
public function parseJSON($method, array $args)
    {
        $http = $this->getHttp();

        $contents = $http->parseJSON(call_user_func_array([$http, $method], $args));

        $this->checkAndThrow($contents);

        return new Collection($contents);
    }
public function parseJSON ( $ method , array $ args ) { $ http = $ this -> getHttp ( ) ; $ contents = $ http -> parseJSON ( call_user_func_array ( [ $ http , $ method ] , $ args ) ) ; $ this -> checkAndThrow ( $ contents ) ; return new Collection ( $ contents ) ; }
Parse JSON from response and check error.

@param string $method
@param array  $args

@return \EntWeChat\Support\Collection
Parse JSON from response and check error .