Re: [Jsonpath] The draft: ambiguous language
Daniel P <danielaparker@gmail.com> Thu, 10 December 2020 16:59 UTC
Return-Path: <danielaparker@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 9C6B53A0EAF for <jsonpath@ietfa.amsl.com>; Thu, 10 Dec 2020 08:59:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gRD15BBL2CZb for <jsonpath@ietfa.amsl.com>; Thu, 10 Dec 2020 08:59:03 -0800 (PST)
Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 22DC23A0EAA for <jsonpath@ietf.org>; Thu, 10 Dec 2020 08:59:03 -0800 (PST)
Received: by mail-wm1-x332.google.com with SMTP id y23so6056785wmi.1 for <jsonpath@ietf.org>; Thu, 10 Dec 2020 08:59:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PVwGK+3s/WrqZ/f20hGALKX8xXnyiGSa6wi6O4lnMF0=; b=S8xwXn2mMnvlDlxI69hhmHJ5HMHdCPmoqotK282FPLnrobzkNZaONUYykXfwlwamze C2QQXSNC1dkaDqT8owjDCNZR8+dRrjpo1/Zq+I+UZ6jRKWCfaUIDLWazFgf7/po1Z1AY q4jC3561cw5BXd4adymBTNZ56tfFFZsGxo94mz2B4GuU7zTNuliik1NxCsB71hyrbHGC x9eYyAqqS9TLZctYC/2OdtDNkC6uzNsJqsh9PRgbXZBku42MhMbL8zhUjbsofKSwP3cL SxjrDCX560pec1toontRtQo52GSiyWWilU7aEf+0GAzWuah/Q6t4tgovIuK3qoU5DeTu THGg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PVwGK+3s/WrqZ/f20hGALKX8xXnyiGSa6wi6O4lnMF0=; b=Qo8UiBe1mb/s9z1xqrivccnl1zRlDaVbs/DCjEsqakqBhfmqIUQxufNJAwa+83mLKa /lOwLSJ+9YVlxwepKkMxwk2zVNZY9ZNY3jXXusO5dyKClgXRorRauww0sQtGDYmyVjuG BkAKA0cqvJQ1HjqA9B+1Kc23sH2u4Ey/ha0U+lIIQ8dM1ypsJsEeu6jmexkdZDnaptC+ m6joABlVGBF1B2jhVmLAl0JYamtjuXGHxp1+bORK7Qy6+pOQdma9smYWEtrWtZ4pJUOy ofoPOkP1Si/3K0ApqwnRp05Wv+xahf9iToWBmP+hSxj9yG1EYTpKyXtKakyItXcP/HiW Am8A==
X-Gm-Message-State: AOAM530gFoyoESNR+mkVr0cXN8ODwJPErTT1Sr9pehmEhF36oDixhqvb 6D9i+smZKj5h0HOFCC+wphuSK+1w+q1P/P3TNQM=
X-Google-Smtp-Source: ABdhPJxJBvxqHX7ykQZDCRGuZgKKfgQpRYqaYo9CB4Cgr5pcRCYWifagljiqeeA9+wqPcUcFUdeMdYkfZuP3t/xlnzQ=
X-Received: by 2002:a7b:cb93:: with SMTP id m19mr9461970wmi.45.1607619541618; Thu, 10 Dec 2020 08:59:01 -0800 (PST)
MIME-Version: 1.0
References: <mailman.2754.1607359255.8352.jsonpath@ietf.org> <CA+mwktLNdF+Hw+Dwfe=r8pSL0T+BuebrRXZ3iqd2=ESZxSDi3w@mail.gmail.com> <C7AAE506-75C0-48C7-962B-28985A2D99F8@tzi.org> <CA+mwktJYokeQ87EjB-h+5y1WPrTWe42ArDHSWJFWDR1aY3rdzg@mail.gmail.com> <248696a566bd5974c8b78c5ee0a61ea12f224a84.camel@gmail.com>
In-Reply-To: <248696a566bd5974c8b78c5ee0a61ea12f224a84.camel@gmail.com>
From: Daniel P <danielaparker@gmail.com>
Date: Thu, 10 Dec 2020 11:58:48 -0500
Message-ID: <CA+mwkt+PpWXsZ6R81X21qVtc2MXCgMXJ0-nfFocq9q7TfF_r0g@mail.gmail.com>
To: Glyn Normington <glyn.normington.work@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, jsonpath@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jsonpath/f2hiTVolhlmjHVludG2brsWmSK0>
Subject: Re: [Jsonpath] The draft: ambiguous language
X-BeenThere: jsonpath@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Dec 2020 16:59:05 -0000
On Mon, Dec 7, 2020 at 11:00 PM Glyn Normington <glyn.normington.work@gmail.com> wrote: > On Mon, 2020-12-07 at 20:49 -0500, Daniel P wrote: > > > > > Related to that, it would be helpful to determine if JSONPath filters > > apply to both JSON objects and arrays, or only to JSON arrays. Our > > excellent Burgmer JSONPath comparison has that covered > > > > https://cburgmer.github.io/json-path-comparison/results/filter_expression_on_object.html > > > > and there is no consensus. > > I would support restricting filters to arrays, if others agree. I've created an issue for this at https://github.com/jsonpath-standard/internet-draft/issues/47. > > > For JSON objects, it's less clear, but perhaps > > > > In a filter expression evaluated against a JSON object, the object > > itself is represented by the symbol @. > > Regardless of the current consensus, or lack of one, I find this > confusing since @ does not correspond to the current item (meaning an > individual member of the object). It's also unhelpful in deciding which > items to filter in/out. > When an undefined term like "current item" occurs in a spec, some readers (such as this one) may draw a complete blank, while others may form an intuitive notion of what that means. But while "an individual member of the object" may seem intuitive, _none_ of the implementations in JSONPath Comparison support that notion, in fact that would require notation like @.key and @.value, which none support. Daniel
- [Jsonpath] The draft: ambiguous language Daniel P
- Re: [Jsonpath] The draft: ambiguous language Tim Bray
- Re: [Jsonpath] The draft: ambiguous language Carsten Bormann
- Re: [Jsonpath] The draft: ambiguous language Tim Bray
- Re: [Jsonpath] The draft: ambiguous language Tim Bray
- Re: [Jsonpath] The draft: ambiguous language Carsten Bormann
- Re: [Jsonpath] The draft: ambiguous language Daniel P
- Re: [Jsonpath] The draft: ambiguous language Glyn Normington
- Re: [Jsonpath] The draft: ambiguous language Daniel P
- Re: [Jsonpath] The draft: ambiguous language Carsten Bormann
- Re: [Jsonpath] The draft: ambiguous language Daniel P