Re: [Jsonpath] [JSONPath] Is an empty query result "Nothing"?

Glyn Normington <glyn.normington.work@gmail.com> Tue, 01 August 2023 19:50 UTC

Return-Path: <glyn.normington.work@gmail.com>
X-Original-To: jsonpath@ietfa.amsl.com
Delivered-To: jsonpath@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 18866C1516E9 for <jsonpath@ietfa.amsl.com>; Tue, 1 Aug 2023 12:50:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.104
X-Spam-Level:
X-Spam-Status: No, score=-7.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u0mRU8VXwGOE for <jsonpath@ietfa.amsl.com>; Tue, 1 Aug 2023 12:50:18 -0700 (PDT)
Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4506EC151530 for <jsonpath@ietf.org>; Tue, 1 Aug 2023 12:50:18 -0700 (PDT)
Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b9c55e0fbeso87330831fa.2 for <jsonpath@ietf.org>; Tue, 01 Aug 2023 12:50:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690919416; x=1691524216; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=HQcyUubRGrBkJ9QQrIAHTS03HuBZHGaJoq/SPhW+Tq0=; b=fmkNXLGQkt671vTac/aLLMPjC82zLPUUfeSddpdQYjZNcj2SypkNgvYV9UNBTy4n09 dt2AX2c1wU+kjTVXvpoy6D6PlNlAdMac3uoztZJGHVi8V+hxO+nMurNxiAwURioDy61/ PcQSpzEHBmn692Bec2on3kSt5Q4rkBYRb+/5C1S4RGhhUKMyHmQcJaq86yiFDr4zgUDX lCGQkMS0EzIUgYgEAG/cICsif4otiAVqkCoRwlZLpBG5Rflm6GK6dfVuif4BcJk4jK8M pucr9KggV8ruHl9+gQPxRQGSlrsS/bkQIXMIQ9cGNjn1OmCW6KLmkiUQ/e6eaV0wMatq cdIQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690919416; x=1691524216; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HQcyUubRGrBkJ9QQrIAHTS03HuBZHGaJoq/SPhW+Tq0=; b=Wr/F+w/WRpGb39EqHitYCZT7fc3CrNQa8O8Euy5tqiuixFnbeCnLcWhpZEy2HXnJoO bommQh+12fm84qsIRwbxPBQTX019FoCtbVKtX4Ox0zAghZYQdnqE9DHQR/vOuns6c5sn S+wKsBf+9pHS7hxfSHhMga6SlVvaybABOKmPmIGEyLo3vECsCCvDI0JHiVm4+dTJBhej ODbq4pRw0E/beH9T6IT6rBlEUP9Co9txJW7nP6gERHNgvh7VFDH0ZCw4IJFwJoKBIcBv JqcA1/QovBCZIm0D2SVLcgpasdtdyDXn/4R2XrYxQBTwfj7kYFNhbDgRUMULpz3Ys9SG Y6kw==
X-Gm-Message-State: ABy/qLYqtdY10N494ITpvi/RPxmpjWhhcDuuV5h1C9YmVsIGOuDhHawF DIne5hG4GYCGzvm4wiN1VImbjTCjMZp/geVGGH8=
X-Google-Smtp-Source: APBJJlHyhPmHrBE/nDxH5qYReNtN3AK6js4NeR/DlLXfh5QZ3+cCoO9egjjFKz38hldtlhoER5zgRe14K8Tf7/BnOqg=
X-Received: by 2002:a2e:9c99:0:b0:2b9:e701:ac4d with SMTP id x25-20020a2e9c99000000b002b9e701ac4dmr2944921lji.26.1690919416109; Tue, 01 Aug 2023 12:50:16 -0700 (PDT)
MIME-Version: 1.0
References: <CO1PR15MB494041582C4D36DFA3BB9958A905A@CO1PR15MB4940.namprd15.prod.outlook.com>
In-Reply-To: <CO1PR15MB494041582C4D36DFA3BB9958A905A@CO1PR15MB4940.namprd15.prod.outlook.com>
From: Glyn Normington <glyn.normington.work@gmail.com>
Date: Tue, 01 Aug 2023 20:50:04 +0100
Message-ID: <CANH0GbJdvr47Vi8C8BfPbE_rb5fJ9EPPa2p2yoeRX+K6T_EcvQ@mail.gmail.com>
To: Lisa Roach <lisroach=40meta.com@dmarc.ietf.org>, jsonpath@ietf.org
Content-Type: multipart/alternative; boundary="0000000000002420c00601e1db1e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jsonpath/yNT-my9mMND9EDlEi1OgClRx3s4>
Subject: Re: [Jsonpath] [JSONPath] Is an empty query result "Nothing"?
X-BeenThere: jsonpath@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: A summary description of the list to be included in the table on this page <jsonpath.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jsonpath>, <mailto:jsonpath-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jsonpath/>
List-Post: <mailto:jsonpath@ietf.org>
List-Help: <mailto:jsonpath-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jsonpath>, <mailto:jsonpath-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Aug 2023 19:50:22 -0000

Hi Lisa

Thanks for the question. A query result is a nodelist, so an empty query
result is simply an empty nodelist.

The empty nodelist has no relation to "Nothing" (an instance of "Value
Type", rather than "NodesType").

Hope that helps.

Regards,
Glyn

On Tue, 1 Aug 2023, 17:48 Lisa Roach, <lisroach=40meta.com@dmarc.ietf.org>
wrote:

> Hello,
>
> This is my first time reading an IETF draft and I thought it was very
> clear. I had one question:
>
> In section 2.1 it says "Mismatches between the structure expected by a
> valid query and the structure found in the data can lead to empty query
> results", which makes sense, but I am wondering if an "empty query result"
> is the same as a "Nothing" defined in section 2.4.1?
>
>
> Thanks,
> Lisa
> --
> JSONpath mailing list
> JSONpath@ietf.org
> https://www.ietf.org/mailman/listinfo/jsonpath
>