Re: [apps-discuss] media type for partial JSON updates?

"Paul C. Bryan" <paul.bryan@forgerock.com> Fri, 30 December 2011 05:37 UTC

Return-Path: <paul.bryan@forgerock.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 BC4F621F8444 for <apps-discuss@ietfa.amsl.com>; Thu, 29 Dec 2011 21:37:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.448
X-Spam-Level:
X-Spam-Status: No, score=-6.448 tagged_above=-999 required=5 tests=[AWL=0.150, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4]
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 MmnqEI1KP03D for <apps-discuss@ietfa.amsl.com>; Thu, 29 Dec 2011 21:37:03 -0800 (PST)
Received: from eu1sys200aog120.obsmtp.com (eu1sys200aog120.obsmtp.com [207.126.144.149]) by ietfa.amsl.com (Postfix) with SMTP id 5518D11E807F for <apps-discuss@ietf.org>; Thu, 29 Dec 2011 21:37:02 -0800 (PST)
Received: from mail-yx0-f171.google.com ([209.85.213.171]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKTv1N+c5p7lt4AXFbicwkCKAgNKlqvAzH@postini.com; Fri, 30 Dec 2011 05:37:02 UTC
Received: by yenr9 with SMTP id r9so9896051yen.16 for <apps-discuss@ietf.org>; Thu, 29 Dec 2011 21:36:56 -0800 (PST)
Received: by 10.236.140.36 with SMTP id d24mr49551467yhj.84.1325223416689; Thu, 29 Dec 2011 21:36:56 -0800 (PST)
Received: from [192.168.1.5] (S0106a021b762dbb3.vf.shawcable.net. [174.1.40.184]) by mx.google.com with ESMTPS id v8sm6323625yhi.10.2011.12.29.21.36.55 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Dec 2011 21:36:55 -0800 (PST)
Message-ID: <1325223414.18477.31.camel@neutron>
From: "Paul C. Bryan" <paul.bryan@forgerock.com>
To: IETF Apps Discuss <apps-discuss@ietf.org>
Date: Thu, 29 Dec 2011 21:36:54 -0800
In-Reply-To: <4EFC9E9B.2040303@gmx.de>
References: <4EFC8C98.10901@gmx.de> <CAPW_8m7oLLLVkinrjEdUvtZYjUDM5V9HVtVH_HnhNOBGixHfAQ@mail.gmail.com> <4EFC994C.7080307@gmx.de> <CAPW_8m4OJtyHiu5rM6iw37OG=N3QjPuPccCmBCs0vRsNa8_H1w@mail.gmail.com> <4EFC9E9B.2040303@gmx.de>
Content-Type: multipart/alternative; boundary="=-y13swzUCUZOxqUM4qpRn"
X-Mailer: Evolution 3.2.2-1
Mime-Version: 1.0
Subject: Re: [apps-discuss] media type for partial JSON updates?
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: Fri, 30 Dec 2011 05:37:03 -0000

On Thu, 2011-12-29 at 18:08 +0100, Julian Reschke wrote:

> On 2011-12-29 17:58, mike amundsen wrote:
> > ...
> > i do not, my message here was too vague.
> >
> > 1) i assumed you were proposing a new document that discussed PATCH
> > for partial updates.
> 
> Oh, sorry.
> 
> > 2) i meant to say that the document you propose "might be the proper
> > place.... etc."
> > 3) i assumed your text "define a matching media type ... It might be
> a
> > light-weight alternative to what
> > <https://tools.ietf.org/html/draft-pbryan-json-patch-04>
> describes..."
> > meant you were proposing a NEW media type to register w/ the IANA
> and
> > i suggested the XML PATCH (RFC5621, i think) as a possible template
> > for designing a JSON variant that would be this NEW media type.
> 
> Ack; understood.
> 
> I think it would be simpler to define it as something that can be 
> trivially transformed to the format defined in 
> https://tools.ietf.org/html/draft-pbryan-json-patch-04; in that case
> we 
> wouldn't even need to describe the actual semantics...


Is this something that just reduces the verbosity of the operations, or
are you talking something probably non-JSON for higher compactness? If
the former, then I'm game to either choose shorter operation names or at
least allow for aliases.

If the latter, what have you got in mind? I'm curious how it might
compare such an approach to merely taking a JSON Patch document (with
possibly shorter op names) and encoding in a binary variant such as
BJSON or UBJSON...

Paul