src/HttpClient.php
public static function parseJSON($method, array $args)
    {
        $body = call_user_func_array([self::class, $method], $args);
        if ($body instanceof ResponseInterface) {
            $body = $body->getBody();
        }

        if (empty($body)) {
            return false;
        }

        $contents = $body->getContents();
        $res = json_decode($contents, true);

        if (JSON_ERROR_NONE !== json_last_error()) {
            return false;
        }

        return $res;
    }
public static function parseJSON($method, array $args)
    {
        $body = call_user_func_array([self::class, $method], $args);
        if ($body instanceof ResponseInterface) {
            $body = $body->getBody();
        }

        if (empty($body)) {
            return false;
        }

        $contents = $body->getContents();
        $res = json_decode($contents, true);

        if (JSON_ERROR_NONE !== json_last_error()) {
            return false;
        }

        return $res;
    }
解析json字符串
@param       $method
@param array $args
@return bool|mixed