protected function parseToJson($resBody, $requestId)
    {
        if ( ! $resBody) {
            return null;
        }

        $result = json_decode($resBody, true);

        if (is_null($result)) {
            throw new Exception ("[BadResponse] Bad format,not json: $resBody", 0, $requestId);
        }

        return $result;
    }