Re: [apps-discuss] JSON Patch not suitable for GeoJSON?

Barry Leiba <barryleiba@computer.org> Thu, 24 January 2013 15:56 UTC

Return-Path: <barryleiba.mailing.lists@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 2778221F8941 for <apps-discuss@ietfa.amsl.com>; Thu, 24 Jan 2013 07:56:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.566
X-Spam-Level:
X-Spam-Status: No, score=-102.566 tagged_above=-999 required=5 tests=[AWL=-0.589, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3ALApFPOM8wD for <apps-discuss@ietfa.amsl.com>; Thu, 24 Jan 2013 07:56:56 -0800 (PST)
Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by ietfa.amsl.com (Postfix) with ESMTP id 9DDE321F8884 for <apps-discuss@ietf.org>; Thu, 24 Jan 2013 07:56:56 -0800 (PST)
Received: by mail-ve0-f174.google.com with SMTP id c13so1562948vea.33 for <apps-discuss@ietf.org>; Thu, 24 Jan 2013 07:56:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=tk2Y4feJy46xvxCdq/gHaIUeVLqf8RpSYqpuE+I7xrM=; b=EFln3mkjwpMF08NV8ZIHV8+cnDaIXw2yhENgJl+WpIPHDcPlzbRSP5dkhll3F2ntlI CdevPts7ixJv9TZ2rvoOJIqLjA7JEdx3QajCtVBgSz44tlTCLoNWF7HmJkKkIApcYj0F 6BBOPe/0jkrQgplMoXNoc830o5NV7u9mHC5pfw386/w5SEZWPvcb8K9QORE+aGrn653i qX9G47mLr7G6GAuVOM346WaeSRVwsCtHpbm6+5v4708KdWpOZJUA7hCsCNZDttiAEyUi bLJn7F8MPR3K2KK9NfaK7h/MJmzatnHmY1UOKn+qJhm7/AasLBJHggpQgg6Xkik/3LhS +UzQ==
MIME-Version: 1.0
X-Received: by 10.220.116.5 with SMTP id k5mr2362151vcq.55.1359043016075; Thu, 24 Jan 2013 07:56:56 -0800 (PST)
Sender: barryleiba.mailing.lists@gmail.com
Received: by 10.59.3.41 with HTTP; Thu, 24 Jan 2013 07:56:55 -0800 (PST)
In-Reply-To: <51014BDE.7080706@gmx.de>
References: <20130124130052.272540@gmx.net> <51014BDE.7080706@gmx.de>
Date: Thu, 24 Jan 2013 10:56:55 -0500
X-Google-Sender-Auth: 34T-0NyMYg72dfgFHgO7ZbYJLzY
Message-ID: <CAC4RtVCVeVePFaYaEdrKWmjXT8tCQnHVXAbFp3+5aOeFEbJT=A@mail.gmail.com>
From: Barry Leiba <barryleiba@computer.org>
To: Martin Kofahl <M.Kofahl@gmx.de>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] JSON Patch not suitable for GeoJSON?
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, 24 Jan 2013 15:56:57 -0000

>> as an example, operations may have to be applied on objects filtered by
>> some key-value-conditions in its leafs.
>>
>> A JSON Patch document may have to look like this:
>>
>> [
>>    { "op": "remove", "path": "/features/*/[\"id\"=\"2\"]::parent" }
>> ]
>>
>> Maybe you can exert this suggestion.
>
> Essentially you're asking for XPath-like expression (which I sympathize with
> :-).
>
> However, the design goal was to keep things as simple as possible, and
> furthermore the spec just has been approved.

But you could always write up a proposal for an alternative patch
format -- it's perfectly possible to have multiple different patch
formats for different use cases.

Barry