presto-client/src/main/java/io/prestosql/client/JsonResponse.java/JsonResponse/isJson
class JsonResponse:    private static boolean isJson(MediaType type)
    {
        return (type != null) && "application".equals(type.type()) && "json".equals(type.subtype());
    }