Re: [apps-discuss] JSON Patch

Martin Thomson <martin.thomson@gmail.com> Thu, 10 November 2011 10:45 UTC

Return-Path: <martin.thomson@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1C5E121F8AFB for <apps-discuss@ietfa.amsl.com>; Thu, 10 Nov 2011 02:45:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TPeh3jugqGfu for <apps-discuss@ietfa.amsl.com>; Thu, 10 Nov 2011 02:45:07 -0800 (PST)
Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by ietfa.amsl.com (Postfix) with ESMTP id 42D3021F8A97 for <apps-discuss@ietf.org>; Thu, 10 Nov 2011 02:45:07 -0800 (PST)
Received: by bkbzv15 with SMTP id zv15so2624479bkb.31 for <apps-discuss@ietf.org>; Thu, 10 Nov 2011 02:45:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kx7jBAJdPNXg7YTig9VF/UB1vgPt9QfXbRFJwVWwe9A=; b=AyFx70FQITEyZ0hvMI9vQTRFZ2PSBD2eimzSgpauiYbn3UPSuAJjpVL6axiTRYv/Bc LBjf57c4w2+Percu8XHsvPsKp8szviNMrJ0zjFJEoKXirYyS8qMnIfi+dsoiFNBFzyi/ YZCFqmiX69d3QXxHJZ3qJP0ztYwaSfCQdO8Dw=
MIME-Version: 1.0
Received: by 10.204.140.129 with SMTP id i1mr4671033bku.19.1320921906123; Thu, 10 Nov 2011 02:45:06 -0800 (PST)
Received: by 10.204.72.210 with HTTP; Thu, 10 Nov 2011 02:45:06 -0800 (PST)
In-Reply-To: <4EBBA0DD.9020605@gmx.de>
References: <4EB1482E.1040600@adobe.com> <4EB14C2E.8040208@gmx.de> <1320254564.2622.37.camel@neutron> <4EBBA0DD.9020605@gmx.de>
Date: Thu, 10 Nov 2011 21:45:06 +1100
Message-ID: <CABkgnnVCZsu8zDS7RyMMvmfLtC252c-XeL69tad+6EyuF5tJBQ@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Content-Type: text/plain; charset=UTF-8
Cc: apps-discuss@ietf.org
Subject: Re: [apps-discuss] JSON Patch
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 10 Nov 2011 10:45:08 -0000

On 10 November 2011 21:01, Julian Reschke <julian.reschke@gmx.de> wrote:
> ...I'll have to ask :-). What about changing the notation for array elements
> to use [ and ]? More complexity in the expression language, but also more
> readability, I believe...

That sounds like a good idea.  Use JSON string representation and you
can deal with any sort of identifier without much new code...
["foo"][3]["bar"]  The approach worked for JSON itself, why not here
too?