Re: [apps-discuss] Confusing JSON Pointer

지송원 James Songwon Chi <chi880466@gmail.com> Tue, 27 March 2012 23:47 UTC

Return-Path: <chi880466@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 4644C21F8763 for <apps-discuss@ietfa.amsl.com>; Tue, 27 Mar 2012 16:47:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.593
X-Spam-Level: *
X-Spam-Status: No, score=1.593 tagged_above=-999 required=5 tests=[AWL=-0.758, BAYES_00=-2.599, CHARSET_FARAWAY_HEADER=3.2, MIME_8BIT_HEADER=0.3, MIME_CHARSET_FARAWAY=2.45, 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 mR0ip4blopuk for <apps-discuss@ietfa.amsl.com>; Tue, 27 Mar 2012 16:47:42 -0700 (PDT)
Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by ietfa.amsl.com (Postfix) with ESMTP id 8A10D21F8762 for <apps-discuss@ietf.org>; Tue, 27 Mar 2012 16:47:42 -0700 (PDT)
Received: by vbbez10 with SMTP id ez10so365439vbb.31 for <apps-discuss@ietf.org>; Tue, 27 Mar 2012 16:47:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=+Ekm1CoWR6KI5obmHfXHDvmEXQjS/+KMWY/rkirEwM8=; b=yk6n0zQaeB6itx4gqo2BWHjggHviR8bBvMehYEdy0zeyluwHw7y8jSFP918YRzDknm iISBgfpLiQhRh0Niqdk/+usyZJxBWrCQHu4g07fAogBkSpVRMvRcZ9RQRI8sw8lL27S2 pIjMatbGuhlk4NkWaKw2+VddV06Glv3rUYD2EELJ7MQl5CR4pkQRCxnF0H0g6iHLSaUR rKPRtSJ+gGo36vCU2W9Cdlr6qP0f5DWH9mvMSBNP+OtIjuDRwXJJxCacyF+0VvKgWJSK 8WC5oC2Cb88ZE/WFGMdUaeu8Ck/DUtXwAb9swseDwBNyM80ZM/ZIARwcUgm1Fw1CYRie RsjA==
MIME-Version: 1.0
Received: by 10.52.19.196 with SMTP id h4mr10773238vde.91.1332892061906; Tue, 27 Mar 2012 16:47:41 -0700 (PDT)
Received: by 10.220.1.4 with HTTP; Tue, 27 Mar 2012 16:47:41 -0700 (PDT)
In-Reply-To: <4F71CD46.5070603@gmx.de>
References: <CAJO=ius8siusDXemCFQKy9=HOXs6L9eX108u7-OW3Rvu+L9qDw@mail.gmail.com> <4F7172FE.6060207@gmx.de> <CAJO=iuv2b1J8D=k5mTEYU3f564cYnXuiL=-83qKFm-kGAjSZOw@mail.gmail.com> <4F71CD46.5070603@gmx.de>
Date: Wed, 28 Mar 2012 08:47:41 +0900
Message-ID: <CAJO=iusKZo9DKynBL3vR11yL40t7X-DsndjXqQCRUUjMcxyE+w@mail.gmail.com>
From: 지송원 James Songwon Chi <chi880466@gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Content-Type: text/plain; charset="EUC-KR"
Content-Transfer-Encoding: quoted-printable
Cc: apps-discuss@ietf.org
Subject: Re: [apps-discuss] Confusing JSON Pointer
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: Tue, 27 Mar 2012 23:47:43 -0000

2012년 3월 27일 오후 11:23, Julian Reschke <julian.reschke@gmx.de>님의 말:
> On 2012-03-27 15:49, 지송원 James Songwon Chi wrote:
>> 2012년 3월 27일 오후 4:57, Julian Reschke<julian.reschke@gmx.de>님의 말:
>>> On 2012-03-27 07:22, 지송원 James Songwon Chi wrote:
>>>>
>>>> After reading JSON Pointer (draft-ietf-appsawg-json-pointer-01), I am
>>>> confused with encoding or escape scheme.
>>>> For me, it is an ambiguous scheme. For example, a reference token
>>>> "ref/1" can be expressed following ways:
>>>>
>>>> 1) If it is a URI fragment identifier and a JSON Pointer
>>>>       Step 1. apply URI encoding: ref%5C1
>>>>       Step 2. apply JSON Pointer encoding:  ref%5C1
>>>>       Final result: ref%5C1
>>>>
>>>> 2) If it is a JSON Pointer and a URI fragment identifier
>>>>       Step 1. apply JSON Pointer encoding: ref^/1
>>>>       Step 2. apply URI encoding:  ref^%5C1
>>>>       Final result: ref^%5C1
>>>>
>>>> I expected the same results.
>>>>
>>>> And if my interpretation is wrong, to prevent the similar question,
>>>> there should be some examples for this kind.
>>>> ...
>>>
>>>
>>> I don't understand the question.
>>>
>>> The spec states how to put JSON Pointers (^-escaping) into fragment
>>> identifiers (%-escaping).
>>>
>>> As far as I can tell the outcome then is what you have under 2), no?
>>>
>>> Best regards, Julian
>>
>> Thank you Julian for the reply.
>> Yes. Answer is 2) for above question. Well, but I gave a wrong
>> question and a wrong example (And solidus is 0x2F, not 0x5C.)
>>
>> This is corrected one:
>>
>> If I want a JSON Pointer to be represented as both a JSON String and a
>> URI fragment identifier, I should apply three encoding scheme.
>> There are two sequences with example:
>> ...
>
> You convert *either* to a string *or* to a URI fragment. Never both.
I don't agree with you. First, there is no such words.
Second, if it is used in a JSON Schema as a "$ref" value, it should be
both JSON String and URI.

By the way, do we really *need another escape* even there are two
encodings already?

>
>> ...
>
> Best regards, Julian