private function clientSupportsJson($minWeight = null)
    {
        try {
            $app = Application::getFacadeApplication();
            $rmrp = $app->make(RequestMediaTypeParser::class);

            return $rmrp->isMediaTypeSupported('application/json', $minWeight);
        } catch (Exception $x) {
            return null;
        } catch (Throwable $x) {
            return null;
        }
    }