Re: [VCARDDAV] JSON format for vCard

Peter Saint-Andre <stpeter@stpeter.im> Wed, 14 November 2012 17:36 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 3217121F86D6 for <vcarddav@ietfa.amsl.com>; Wed, 14 Nov 2012 09:36:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.494
X-Spam-Level:
X-Spam-Status: No, score=-102.494 tagged_above=-999 required=5 tests=[AWL=0.105, BAYES_00=-2.599, 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 zLl-3TGzRf4H for <vcarddav@ietfa.amsl.com>; Wed, 14 Nov 2012 09:36:19 -0800 (PST)
Received: from stpeter.im (mailhost.stpeter.im [207.210.219.225]) by ietfa.amsl.com (Postfix) with ESMTP id AD83A21F8669 for <vcarddav@ietf.org>; Wed, 14 Nov 2012 09:36:19 -0800 (PST)
Received: from [64.101.72.39] (unknown [64.101.72.39]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id D8E9140062; Wed, 14 Nov 2012 10:40:29 -0700 (MST)
Message-ID: <50A3D697.30407@stpeter.im>
Date: Wed, 14 Nov 2012 10:36:23 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Cyrus Daboo <cyrus@daboo.name>
References: <BCCFABA96A30ECA0DE347226@caldav.corp.apple.com>
In-Reply-To: <BCCFABA96A30ECA0DE347226@caldav.corp.apple.com>
X-Enigmail-Version: 1.4.5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Cc: VCard <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] JSON format for vCard
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: Wed, 14 Nov 2012 17:36:20 -0000

Hi Cyrus,

Thanks for following up on this issue. As we discussed in Atlanta, I
agree that we need to produce convergence in our approaches here, as we
did for the XML representation. Unfortunately I'm pretty swamped with
day-job responsibilities right now, so I probably won't have time to
look at it for another few weeks. :(

Peter

On 11/14/12 10:29 AM, Cyrus Daboo wrote:
> Hi folks,
> We just published a draft describing a proposed JSON format for
> iCalendar
> (<http://www.ietf.org/internet-drafts/draft-kewisch-et-al-icalendar-in-json-00.txt>).
> Obviously it would be good to have alignment between that and any JSON
> format for vCard (similar to what we did for the XML representations).
> 
> We have had a lot of discussions at CalConnect about the JSON format
> leading up to the publication of the new draft, and we believe the
> chosen format represents a good compromise of all the various
> requirements (performance, streaming, compactness, regular, etc).
> 
> If we were to adopt the same format for vCard in JSON, then an example
> might look like this:
> 
> BEGIN:VCARD
> VERSION:4.0
> FN:Cyrus Daboo
> N:Daboo;Cyrus;;;
> ADR;TYPE=POSTAL:;;123 Example Circle;Example;EX;99999;USA
> EMAIL:cyrus@example.com
> TEL;TYPE=HOME,VOICE;VALUE=URI:tel:555-555-5555
> END:VCARD
> 
> 
> ["vcard",
> [
>   ["version", {}, "text", "4.0"],
>   ["fn", {}, "text", "Cyrus Daboo"],
>   ["n", {}, "text", "Daboo", "Cyrus", "", "", ""],
>   ["adr", {"type" : "POSTAL"}, "text",
>    "", "", "123 Example Circle", "Example", "EX", "99999", "USA"],
>   ["email", {}, "text", "cyrus@example.com"],
>   ["tel", {"type" : ["HOME", "VOICE"]}, "uri", "tel:555-555-5555"],
> ],
> ]
> 
> Given that there has been a lot of interest from other working groups at
> the IETF for a JSON vCard format, we should discuss this and move
> forward quickly.
>