[apps-discuss] draft-saintandre-json-namespaces-00 comments

Dominik Tomaszuk <ddooss@wp.pl> Tue, 08 November 2011 12:42 UTC

Return-Path: <ddooss@wp.pl>
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 07F9621F8C4E for <apps-discuss@ietfa.amsl.com>; Tue, 8 Nov 2011 04:42:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.959
X-Spam-Level:
X-Spam-Status: No, score=-0.959 tagged_above=-999 required=5 tests=[AWL=-1.445, BAYES_00=-2.599, HELO_EQ_PL=1.135, HOST_EQ_PL=1.95]
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 SwgLzrkHl2xr for <apps-discuss@ietfa.amsl.com>; Tue, 8 Nov 2011 04:42:58 -0800 (PST)
Received: from mx4.wp.pl (mx4.wp.pl [212.77.101.8]) by ietfa.amsl.com (Postfix) with ESMTP id 34B2021F8AF3 for <apps-discuss@ietf.org>; Tue, 8 Nov 2011 04:42:58 -0800 (PST)
Received: (wp-smtpd smtp.wp.pl 2878 invoked from network); 8 Nov 2011 13:42:56 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1320756176; bh=QlvrTFb/wvUHODGHNSfBm8CUHXG5Preq2cm+D/ODUok=; h=From:To:Subject; b=dgFvIyOKExMzEQTQpfu21GVzp6JGyDeZifyxDN9NYWR1MBBp697T9NNSvAm77VgsL H0WhuSofG4iNummnbOugYh22XxRGsbg3rwYxk8d323pkdNOe3t+Txr8eAshf8y2X18 tMSuJpuVchBWpFK3Fb7SmtSQWOvz+TieUcEupFJY=
Received: from 87-205-152-25.adsl.inetia.pl (HELO [192.168.1.1]) (ddooss@[87.205.152.25]) (envelope-sender <ddooss@wp.pl>) by smtp.wp.pl (WP-SMTPD) with SMTP for <apps-discuss@ietf.org>; 8 Nov 2011 13:42:56 +0100
Message-ID: <4EB923CF.7080600@wp.pl>
Date: Tue, 08 Nov 2011 13:42:55 +0100
From: Dominik Tomaszuk <ddooss@wp.pl>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110921 Lightning/1.0b2 Thunderbird/3.1.15
MIME-Version: 1.0
To: apps-discuss@ietf.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A.
X-WP-SPAM: NO 0000006 [QbaA]
X-Mailman-Approved-At: Tue, 08 Nov 2011 08:41:40 -0800
Subject: [apps-discuss] draft-saintandre-json-namespaces-00 comments
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, 08 Nov 2011 12:42:59 -0000

Hi Peter,

Clark Notation can sometimes be too heavy, especially when namespaces 
are placed in many keys. I propose to give possibility to declare 
namespace. For instance:
{
   "$namespaces": {
     "foo": "http://example.com/foo"
   },
   "access_token":"2YotnFZFEjr1zCsicMWpAA",
   "token_type":"example",
   "expires_in":3600,
   "refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA",
   "{$foo}bar":"baz"
}
This capability allows JSON documents to be lightweight.

Best regards,
Dominik Tomaszuk