Re: [VCARDDAV] JSON representation
Peter Saint-Andre <stpeter@stpeter.im> Thu, 07 June 2012 15:53 UTC
Return-Path: <stpeter@stpeter.im>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B943021F8701 for <vcarddav@ietfa.amsl.com>; Thu, 7 Jun 2012 08:53:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.794
X-Spam-Level:
X-Spam-Status: No, score=-102.794 tagged_above=-999 required=5 tests=[AWL=-0.195, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 rKjsgcM9kd1V for <vcarddav@ietfa.amsl.com>; Thu, 7 Jun 2012 08:53:34 -0700 (PDT)
Received: from stpeter.im (mailhost.stpeter.im [207.210.219.225]) by ietfa.amsl.com (Postfix) with ESMTP id 443E221F86F4 for <vcarddav@ietf.org>; Thu, 7 Jun 2012 08:53:34 -0700 (PDT)
Received: from [64.101.72.115] (unknown [64.101.72.115]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 2D3A1400A4; Thu, 7 Jun 2012 10:10:27 -0600 (MDT)
Message-ID: <4FD0CE7C.2000308@stpeter.im>
Date: Thu, 07 Jun 2012 09:53:32 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120601 Thunderbird/13.0
MIME-Version: 1.0
To: Joe Marcus Clarke <jclarke@cisco.com>
References: <4FCFFECA.8010507@stpeter.im> <4FD03BEB.5060402@cisco.com> <105AACDB-4ED9-4D2E-9042-05ECD57AE5D4@cisco.com> <4FD0C950.5000705@cisco.com>
In-Reply-To: <4FD0C950.5000705@cisco.com>
X-Enigmail-Version: 1.4.2
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] JSON representation
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jun 2012 15:53:37 -0000
On 6/7/12 9:31 AM, Joe Marcus Clarke wrote: > On 6/7/12 10:48 AM, Raghurama Bhat (ragbhat) wrote: >> [Raghu] You make a good point about well behaved servers. But here >> is our reasoning. 1. It is rare that you call an API OR click on a >> link and you don't know what response you get 2. Most often you >> will be using a language mapping to map this to a >> Java/Javascript/C++ Object. A level of indirection is going to be >> quite inconvenient. > > What if the server returns a JSON error object or a jCard depending > on whether or not an error occurred, but didn't set the the > content-type correctly? Sure, this is recoverable in the code, but > if there was a guaranteed vcard container, one could check for that. > >> >> When this is embedded in some other structure, it is going to be >> the value part of a property/value pair. Property part would >> indicate what this object is. > > Unless it's a generic like "object" : { }, which would leave it up > to the code to cast to the correct specific type. Hi Joe, In an earlier iteration we had a "wrapper" indicating that the data is a JSON-encoded vCard but Raghu convinced me it wasn't necessary. I don't think it would be harmful in include that, and I see your point about generic structures like "object". I'll give it further thought. Peter -- Peter Saint-Andre https://stpeter.im/
- Re: [VCARDDAV] JSON representation Simon Perreault
- [VCARDDAV] JSON representation Peter Saint-Andre
- Re: [VCARDDAV] JSON representation Joe Marcus Clarke
- Re: [VCARDDAV] JSON representation Raghurama Bhat (ragbhat)
- Re: [VCARDDAV] JSON representation Cyrus Daboo
- Re: [VCARDDAV] JSON representation Joe Marcus Clarke
- Re: [VCARDDAV] JSON representation Julian Reschke
- Re: [VCARDDAV] JSON representation Peter Saint-Andre
- Re: [VCARDDAV] JSON representation Peter Saint-Andre
- Re: [VCARDDAV] JSON representation Peter Saint-Andre
- Re: [VCARDDAV] JSON representation Cyrus Daboo
- Re: [VCARDDAV] JSON representation Simon Perreault
- Re: [VCARDDAV] JSON representation Raghurama Bhat (ragbhat)
- Re: [VCARDDAV] JSON representation Simon Perreault
- Re: [VCARDDAV] JSON representation Raghurama Bhat (ragbhat)
- Re: [VCARDDAV] JSON representation Julian Reschke
- Re: [VCARDDAV] JSON representation Simon Perreault
- Re: [VCARDDAV] JSON representation Peter Saint-Andre
- Re: [VCARDDAV] JSON representation Simon Perreault
- Re: [VCARDDAV] JSON representation Raghurama Bhat (ragbhat)
- Re: [VCARDDAV] JSON representation Simon Perreault
- Re: [VCARDDAV] JSON representation Joe Hildebrand
- Re: [VCARDDAV] JSON representation Joe Hildebrand
- Re: [VCARDDAV] JSON representation Raghurama Bhat (ragbhat)
- Re: [VCARDDAV] JSON representation Simon Perreault