[Jsonpath] Singular path

Daniel P <danielaparker@gmail.com> Tue, 26 April 2022 12:55 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 5C1F4C1D3868 for <jsonpath@ietfa.amsl.com>; Tue, 26 Apr 2022 05:55:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.198
X-Spam-Level:
X-Spam-Status: No, score=-0.198 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 oiPSCJ73Il95 for <jsonpath@ietfa.amsl.com>; Tue, 26 Apr 2022 05:55:47 -0700 (PDT)
Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) (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 E10ABC157B4F for <jsonpath@ietf.org>; Tue, 26 Apr 2022 05:55:47 -0700 (PDT)
Received: by mail-pf1-x435.google.com with SMTP id t13so4234653pfg.2 for <jsonpath@ietf.org>; Tue, 26 Apr 2022 05:55:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=fcVe54fUXxfZkd+6LVwk17JxOwzeTHxBUetcvwQIDrg=; b=qn/KsN0bO/wUJRRPIvGszBkJ5U0cyQ7mDoXuDZYD+5Y+tDYGEL5ue9Q7JCPe5Ohufk WD502Ltk6dcrBNuUWgoZoPbB9gqfAsbtKPl3f64TpbFHku8QW2Pj+7m3heMUbvqUhwH1 lAPdAMwQgCmbETDUxDb1CEJEI/nM/hYwFzkWxpwq7757XM9jaqbStgpBD4iiVzgyiC37 WFIaPg+8lFctXEdDVI/KxoP+nDMZ0oDhxLBBPEPQDeyD1hFV+aUBn/VNWmX9mNo3BP+R uxBRx19PwcsTb6oTZD5At5iz9OSj9RoWylBFLpqDdxzDJ2M1XGFvvUWPv8IHEVGfnnpM iCZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=fcVe54fUXxfZkd+6LVwk17JxOwzeTHxBUetcvwQIDrg=; b=WlWy15+Xm0aF3NBpdrLf1AymWWEg29m6ZmiJQcvjaeajcRWtLwv5hLYUBxEDpR8PTm iWHfCg4wHHk16hudO7gYNDnSHiA27rnk2XRAExUX/dkbuRybm14paMv0VpeL+AX38fEl /eUuPvok+jMUzouUxSh/p3Ex5p3Z+WRz6maFR+KKewWnuTxC1KSKoq6OXOh4w9gi+xjs 70v5BTUjYhVUPqerg6thlNCPSlPm9xdZr2cTrBIkHggVYouq7b64ITc4AnQGXoKfHkWR Z27XjNqJlA6lnWg0aSmo4kjTF7NvGYaSQUtWW2FyKlXS8Mrb1UL87vkDStMp5KUFcwY3 JIsQ==
X-Gm-Message-State: AOAM532Hx/PYNmpQ1+5T3MRCiXYWYDLHVDHamPQeXyokLlwnIfCc5gbw TzfUdT5qy1B20Vp2HHE7NOQ0X1R+HSGC1StW9I0S45Ol3og=
X-Google-Smtp-Source: ABdhPJwxxFcNsc6EkBmk5eGMEHmW6OTbzXuEeohfNllF9Z7R9WdqGbFx+CVhSA4aAZ81DmoWlJWVJpYSknwCOgCcwIU=
X-Received: by 2002:a63:2a0d:0:b0:3ab:392c:f45c with SMTP id q13-20020a632a0d000000b003ab392cf45cmr9048152pgq.575.1650977746721; Tue, 26 Apr 2022 05:55:46 -0700 (PDT)
MIME-Version: 1.0
References: <mailman.160.1650959281.28781.jsonpath@ietf.org>
In-Reply-To: <mailman.160.1650959281.28781.jsonpath@ietf.org>
From: Daniel P <danielaparker@gmail.com>
Date: Tue, 26 Apr 2022 08:55:35 -0400
Message-ID: <CA+mwktJspq5ZH80gF8pWj3cWdbCGAEE69TBqScriK+S4v8eSYw@mail.gmail.com>
To: jsonpath@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/jsonpath/w1J4J2RhAY4CryhwLLIEo5bkKlg>
Subject: [Jsonpath] Singular path
X-BeenThere: jsonpath@ietf.org
X-Mailman-Version: 2.1.34
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, 26 Apr 2022 12:55:48 -0000

> From: Greg Dennis <gregsdennis@yahoo.com>

> A singular path should be run-time-determined.  If the path returns a single value, it's singular for that data.  This works for dinner expressions (comparisons) as well as a base definition for further refinement in normalized paths.  Comparisons against multi-results just return false (for now; we may want to expand and define this later).
>
> This means that there's not a specific subset of the syntax that can define a singular path, but I think that's fine.
>
I agree that that makes sense for value comparisons. I believe it's
also consistent with XPath,

https://www.w3.org/TR/xpath-31/#id-value-comparisons

("If an atomized operand is a sequence of length greater than one, a
type error is raised.")

Daniel