
From kewisch@gmail.com  Tue Jan 15 00:24:49 2013
Return-Path: <kewisch@gmail.com>
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 70C2B21F8A6C; Tue, 15 Jan 2013 00:24:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.598
X-Spam-Level: 
X-Spam-Status: No, score=-3.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
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 3ZjbhHfkPdBx; Tue, 15 Jan 2013 00:24:48 -0800 (PST)
Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by ietfa.amsl.com (Postfix) with ESMTP id 4340421F8AB0; Tue, 15 Jan 2013 00:24:48 -0800 (PST)
Received: by mail-bk0-f54.google.com with SMTP id je9so2451806bkc.13 for <multiple recipients>; Tue, 15 Jan 2013 00:24:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=gbq0hFZG7pHahXapYw4lIqGaF1RRYcAoihsAUfcjups=; b=OSndB5O2tiPOYNQvb7WwgbEzPJOt5uso+X0hLkb01Mk6hdStKIZ1Muc1S2lAWwpNCd cLhhxdhScHgTgciwynWs4scEErM0Nv5JWw15g7n9GvjFtYe2eXbEpesS5plcAjAxb08x gdAOu6SDIpWOOsh1UDU4XQabfrWeDt6b/5SY+gseMUnfEfwUhKa719I9TUzarqAQ92vW qW4SL8Gr0GGvfIncuZ2g0I380Y6wEpABgIadjOyKnXmmNKISX6SMsqr2OkAw2f4M3Riv ZffbQL74Jpw673iApD9XpSVrFxnXPtmJL12qBophKVRxZj17ZkYiPti5U2wQGYE5WyDi p88w==
X-Received: by 10.204.148.130 with SMTP id p2mr39728779bkv.10.1358238287284; Tue, 15 Jan 2013 00:24:47 -0800 (PST)
Received: from cwlcl-35.fh-wedel.de (kewis.ch. [178.17.162.74]) by mx.google.com with ESMTPS id c10sm11789448bkw.1.2013.01.15.00.24.45 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jan 2013 00:24:46 -0800 (PST)
Message-ID: <50F5124F.8070609@gmail.com>
Date: Tue, 15 Jan 2013 09:24:47 +0100
From: Philipp Kewisch <kewisch@gmail.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:18.0) Gecko/20121128 Thunderbird/18.0
MIME-Version: 1.0
To: calsify@ietf.org, vcarddav@ietf.org
Content-Type: multipart/alternative; boundary="------------060200090404010205010704"
Subject: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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: Tue, 15 Jan 2013 08:24:49 -0000

This is a multi-part message in MIME format.
--------------060200090404010205010704
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello Folks,

Based on discussion we have had within the calconnect group, I have just 
posted a new version of draft-kewisch-et-al-icalendar-in-json with the 
following changes. You can find the draft here 
<http://www.ietf.org/id/draft-kewisch-et-al-icalendar-in-json-01.txt>.

       *  Added information on how to handle multi-value parameter.  The
          decision leads to a cleaner draft for a similar proposal for
          vcard.

       *  Removed the open discussion point section regarding the mime
          media type in favor of adding one.

I would appreciate your feedback on the draft in order to advance on 
this topic.

Also, especially or the vcarddav folks, please also take a look at my 
previous email 
<http://www.ietf.org/mail-archive/web/vcarddav/current/msg02678.html> to 
get a comparison between the vcarddav-json draft and the format we 
propose for iCalendar. I would like to push forward with this and come 
to a consensus so we can provide a compatible draft for vcards.

I am also happy to announce that Mozilla is already testing this draft 
in the field with the Firefox OS calendaring application. To do so, we 
are using the ical.js library I have been working on, see 
<https://github.com/kewisch/ical.js/>.

Regards,
Philipp

--------------060200090404010205010704
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <link href="chrome://translator/skin/floatingPanel.css"
      type="text/css" rel="stylesheet">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Folks,<br>
    <br>
    Based on discussion we have had within the calconnect group, I have
    just posted a new version of draft-kewisch-et-al-icalendar-in-json
    with the following changes. You can find the draft here
    <a class="moz-txt-link-rfc2396E" href="http://www.ietf.org/id/draft-kewisch-et-al-icalendar-in-json-01.txt">&lt;http://www.ietf.org/id/draft-kewisch-et-al-icalendar-in-json-01.txt&gt;</a>.<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <pre>      *  Added information on how to handle multi-value parameter.  The
         decision leads to a cleaner draft for a similar proposal for
         vcard.

      *  Removed the open discussion point section regarding the mime
         media type in favor of adding one.
</pre>
    I would appreciate your feedback on the draft in order to advance on
    this topic. <br>
    <br>
    Also, especially or the vcarddav folks, please also take a look at
    my previous email
    <a class="moz-txt-link-rfc2396E" href="http://www.ietf.org/mail-archive/web/vcarddav/current/msg02678.html">&lt;http://www.ietf.org/mail-archive/web/vcarddav/current/msg02678.html&gt;</a>
    to get a comparison between the vcarddav-json draft and the format
    we propose for iCalendar. I would like to push forward with this and
    come to a consensus so we can provide a compatible draft for vcards.<br>
    <br>
    I am also happy to announce that Mozilla is already testing this
    draft in the field with the Firefox OS calendaring application. To
    do so, we are using the ical.js library I have been working on, see
    <a class="moz-txt-link-rfc2396E" href="https://github.com/kewisch/ical.js/">&lt;https://github.com/kewisch/ical.js/&gt;</a>.<br>
    <br>
    Regards,<br>
    Philipp<br>
    <div style="bottom: auto; left: 681px; right: auto; top: 350px;
      display: none;" class="translator-theme-default"
      id="translator-floating-panel">
      <div title="Click to translate"
        id="translator-floating-panel-button"></div>
    </div>
  </body>
</html>

--------------060200090404010205010704--

From stpeter@stpeter.im  Tue Jan 15 11:43:34 2013
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 E59B021F84DC for <vcarddav@ietfa.amsl.com>; Tue, 15 Jan 2013 11:43:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.299
X-Spam-Level: 
X-Spam-Status: No, score=-102.299 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, J_CHICKENPOX_46=0.6, 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 JgcfKgsj0zPc for <vcarddav@ietfa.amsl.com>; Tue, 15 Jan 2013 11:43:33 -0800 (PST)
Received: from stpeter.im (mailhost.stpeter.im [207.210.219.225]) by ietfa.amsl.com (Postfix) with ESMTP id D648721F84D5 for <vcarddav@ietf.org>; Tue, 15 Jan 2013 11:43:32 -0800 (PST)
Received: from [10.154.228.77] (unknown [128.107.239.233]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id AE7D54005D for <vcarddav@ietf.org>; Tue, 15 Jan 2013 12:49:02 -0700 (MST)
Message-ID: <50F5B163.6030708@stpeter.im>
Date: Tue, 15 Jan 2013 11:43:31 -0800
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: CardDAV <vcarddav@ietf.org>
References: <20130115185248.27396.18111.idtracker@ietfa.amsl.com>
In-Reply-To: <20130115185248.27396.18111.idtracker@ietfa.amsl.com>
X-Enigmail-Version: 1.5
X-Forwarded-Message-Id: <20130115185248.27396.18111.idtracker@ietfa.amsl.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [VCARDDAV] Fwd: Protocol Action: 'vCard KIND:device' to Proposed Standard (draft-salgueiro-vcarddav-kind-device-07.txt)
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: Tue, 15 Jan 2013 19:43:34 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

FYI.


- -------- Original Message --------
Subject: Protocol Action: 'vCard KIND:device' to Proposed Standard
(draft-salgueiro-vcarddav-kind-device-07.txt)
Date: Tue, 15 Jan 2013 10:52:48 -0800
From: The IESG <iesg-secretary@ietf.org>
To: IETF-Announce <ietf-announce@ietf.org>
CC: RFC Editor <rfc-editor@rfc-editor.org>

The IESG has approved the following document:
- - 'vCard KIND:device'
  (draft-salgueiro-vcarddav-kind-device-07.txt) as Proposed Standard

This document has been reviewed in the IETF but is not the product of an
IETF Working Group.

The IESG contact person is Pete Resnick.

A URL of this Internet Draft is:
http://datatracker.ietf.org/doc/draft-salgueiro-vcarddav-kind-device/




Technical Summary

  This document defines a value of "device" for the vCard KIND property
  so that the vCard format can be used to represent computing devices
  such as appliances, computers, or network elements (e.g., a server,
  router, switch, printer, sensor, or phone).

Working Group Summary

  This document is an individual submission, however it has been
  discussed and reviewed on the VCARDDAV Working Group mailing list.
  There was detailed discussion of the "device" KIND along with the
  "application" KIND (already published as RFC 6473).

Document Quality

  An informal last call was issued on the VCARDDAV Working Group mailing
  list. Some comments were received and the draft updated accordingly.
  The required expert review was requested and approval received via the
  mailing list.

Personnel

  Document Shepherd: Cyrus Daboo <mailto:cyrus@daboo.name>
  AD: Pete Resnick <presnick@qti.qualcomm.com>



-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlD1sWMACgkQNL8k5A2w/vz3/QCfeN6PJn0XtDPnbqKhNbpbwHt1
EWwAn3DyccxkQmIE8WG1ZdCVcdWtrjUV
=Qqnt
-----END PGP SIGNATURE-----

From mike.angstadt@gmail.com  Tue Jan 15 17:24:23 2013
Return-Path: <mike.angstadt@gmail.com>
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 93F9F21F86CB; Tue, 15 Jan 2013 17:24:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 NsDUFpcTaIjs; Tue, 15 Jan 2013 17:24:22 -0800 (PST)
Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by ietfa.amsl.com (Postfix) with ESMTP id 49F6021F84DD; Tue, 15 Jan 2013 17:24:22 -0800 (PST)
Received: by mail-pa0-f50.google.com with SMTP id hz10so459026pad.23 for <multiple recipients>; Tue, 15 Jan 2013 17:24:15 -0800 (PST)
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; bh=dY8wq272twJt/VPJBVnoPYlA7qPTzUp6VfThn0hAEUw=; b=y2N5w0Os20J5jJz55O+Ah6Hp0U6ABkzMmL/S7w1Z/c4e7MaeSiiP8L7mG1g0Kibpwt jOjI+DNI/AepNnCro7N8X92auHlsnyL1pof8uxmLUBFb5q74pwJNLaSYDyPtnkB08TvI KI+kxRxZL6iNFzfaVli53vNEpMrBNrQ+AiczzKCwehkVgYFM8eJEM0py7pxQkBnroeZA xKnelBkn92GdC6heJXvcVlL43j8tuy1UMJ0tyi+lvpdyYpzO2nJzJ54X3gdz0yAVmhDC OzwLaEgdE8b/utPVT0ovdncUTxLCABt5BwFr7FmZTvxbHBQguxfvuM+Ujc92dM4UBzTB hc/Q==
MIME-Version: 1.0
Received: by 10.68.232.195 with SMTP id tq3mr270468169pbc.70.1358299455147; Tue, 15 Jan 2013 17:24:15 -0800 (PST)
Received: by 10.68.7.42 with HTTP; Tue, 15 Jan 2013 17:24:15 -0800 (PST)
In-Reply-To: <50F5124F.8070609@gmail.com>
References: <50F5124F.8070609@gmail.com>
Date: Tue, 15 Jan 2013 20:24:15 -0500
Message-ID: <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com>
From: Michael Angstadt <mike.angstadt@gmail.com>
To: Philipp Kewisch <kewisch@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: Calsify <calsify@ietf.org>, "vcarddav@ietf.org" <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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, 16 Jan 2013 01:24:23 -0000

Here are a few of my thoughts about the two specs:

Summary:

(1) jCal doesn't support grouping.
(2) jCal eliminates the possibility for naming conflicts that
vcarddav-json makes possible.
(3) vcarddav-json allows property values to be encoded as objects,
while jCal does not.

(1) Grouping

One problem with jCal is that it doesn't support grouping, which is
problematic for vCards.  For example, the vCard below can't be
JSON-encoded according to the jCal specs because the EMAIL property
belongs to a group.

BEGIN:VCARD
VERSION:4.0
FN:John Doe
group.EMAIL:johndoe@hotmail.com
END:VCARD

A simple solution would be to prepend the group to the property name,
separating it from the property name with some special character, just
like in vCard.  For example:

["group.email", {}, "text", "johndoe@hotmail.com"]

The JSON syntax could also be modified to accomodate a group name (for
example, by adding a new array element), but some of the benefits to
the above approach that I see are:

(a) Greater compatibility with jCal.
(b) Grouping is a fairly infrequently-used feature.  Changing the
syntax would add extra complexity which won't be used in most
situations.

I must say, I'm not a big fan of the grouping mechanism in
vcarddav-json.  Like Bert Greevenbosch mentioned previously, naming
conflicts will occur if a group shares the same name as a property.
It does, however, make it so that the group name only has to be
declared once, which is a plus (like in xCard).

(2) Naming conflicts

I think one major plus about jCal is its elimination of the potential
for naming conflicts between value type names ("text", "uri", etc) and
parameter names.  Philipp explained this in a previous email.  Quoting
Philipp:

[[quote]]
Another issue here might be extensibility. What happens if an
extension draft specifies a new value type that is the same as a
parameter, or vice versa?

X-THING;VALUE=URI;URI="urn:foo":urn:bar
vcarddav-json: { "x-thing": { "uri": ??? } }
jCal: ["x-thing", { "uri": "urn:foo" }, "uri", "urn:bar"]
[[/quote]]

jCal prevents these naming conflicts from occurring because parameters
and property values are stored separately.

(3) JSON objects for property values

On the flip-side, I think one nice feature about vcarddav-json is that
property values are encoded as JSON objects.  This is great for
multi-valued properties like ADR and N because each value can be
indexed by a human-readable name.  jCal, however, requires that the
values be appended onto the end of the property array, which means
that they must be retrieved by index.  It also means that a
placeholder element (like a "null" value) must be included for any
missing components of the property value in order to preserve the
array indexing.  The ADR property is a good example:

vcarddav-json:

"adr": {
  "type": "work",
  "street": "2875 boul. Laurier, suite D2-630",
  "locality": "Quebec",
  "region": "QC",
  "code": "G1V 2M2",
  "country": "CA"
}

jCal:

["adr", {"type":"work"}, "text", null, "2875 boul. Laurier, suite
D2-630", "Quebec", "QC", "G1V 2M2", "CA"]

The "null" in the jCal example is for the missing "extended address" field.

One possible solution to this (if this is deemed a "problem" in the
first place) would be to add an "object" value type to the jCal spec
that allows you to specify a JSON object as the value.  For example:

["adr", {"type":"work"}, "object", {"street": "2875 boul. Laurier,
suite D2-630", "locality":"Quebec", "region":"QC", "code": "G1V 2M2",
"country":"CA"}]

jCard & jCal in 2013!! :)

Regards,
Mike Angstadt
http://code.google.com/p/ez-vcard

On Tue, Jan 15, 2013 at 3:24 AM, Philipp Kewisch <kewisch@gmail.com> wrote:
> Hello Folks,
>
> Based on discussion we have had within the calconnect group, I have just
> posted a new version of draft-kewisch-et-al-icalendar-in-json with the
> following changes. You can find the draft here
> <http://www.ietf.org/id/draft-kewisch-et-al-icalendar-in-json-01.txt>.
>
>       *  Added information on how to handle multi-value parameter.  The
>          decision leads to a cleaner draft for a similar proposal for
>          vcard.
>
>       *  Removed the open discussion point section regarding the mime
>          media type in favor of adding one.
>
> I would appreciate your feedback on the draft in order to advance on this
> topic.
>
> Also, especially or the vcarddav folks, please also take a look at my
> previous email
> <http://www.ietf.org/mail-archive/web/vcarddav/current/msg02678.html> to get
> a comparison between the vcarddav-json draft and the format we propose for
> iCalendar. I would like to push forward with this and come to a consensus so
> we can provide a compatible draft for vcards.
>
> I am also happy to announce that Mozilla is already testing this draft in
> the field with the Firefox OS calendaring application. To do so, we are
> using the ical.js library I have been working on, see
> <https://github.com/kewisch/ical.js/>.
>
> Regards,
> Philipp
>
> _______________________________________________
> VCARDDAV mailing list
> VCARDDAV@ietf.org
> https://www.ietf.org/mailman/listinfo/vcarddav
>

From mike.angstadt@gmail.com  Thu Jan 17 18:35:26 2013
Return-Path: <mike.angstadt@gmail.com>
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 EA19D21F8B58; Thu, 17 Jan 2013 18:35:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 5vGSFKIeYirM; Thu, 17 Jan 2013 18:35:25 -0800 (PST)
Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by ietfa.amsl.com (Postfix) with ESMTP id 2582621F8B60; Thu, 17 Jan 2013 18:35:25 -0800 (PST)
Received: by mail-pa0-f41.google.com with SMTP id bj3so1840430pad.0 for <multiple recipients>; Thu, 17 Jan 2013 18:35:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=s5HExSp1ddVv++s44GUjcrN8zS5+0j1IRyPjcAn9ePE=; b=0kBBVIUcqlfhAdFYAsmAYjy31QPYCFJ2ZXlNZEqaYmkGAJxbcsSaU625kG6z4XIZxK lGzy/DCZzGq6eqO3CMdtrCb7Sy4OGgWHjCVJbhT0ues8dNtRpKJq6IbX0P+ZbSMfH4Ve GnDz1hDVoZwfAuKZwT1EZws4Jk7Yb8FqVTuuxM7MsGoCQRc0LNNu5h2fhGRh+3ET8Qzm QC/t+SwYtUBJ6mjJbC+mBO7ri1tRqAB3dhnXLAxEoSd3Bo8T+JApJteJEnbgRcRU5UNm 0Qz00TZTn41sLTrrqHcmfo1/B8WY2+oHbLEY8vghYi5LEVKIMUcqmJfFrbH/vo/fpXag bssw==
MIME-Version: 1.0
X-Received: by 10.68.239.232 with SMTP id vv8mr19402508pbc.53.1358476517558; Thu, 17 Jan 2013 18:35:17 -0800 (PST)
Received: by 10.68.7.42 with HTTP; Thu, 17 Jan 2013 18:35:17 -0800 (PST)
In-Reply-To: <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com>
References: <50F5124F.8070609@gmail.com> <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com>
Date: Thu, 17 Jan 2013 21:35:17 -0500
Message-ID: <CAJNb_g01wp4RL-iaEeB=vDm4XPDT4veZ8yt-UR3QXCcD=Xes7w@mail.gmail.com>
From: Michael Angstadt <mike.angstadt@gmail.com>
To: Philipp Kewisch <kewisch@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: Calsify <calsify@ietf.org>, "vcarddav@ietf.org" <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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: Fri, 18 Jan 2013 02:35:27 -0000

Another issue is how to handle embedded vCards (i.e. AGENT).

vcarddav-json currently does not say anything about this.  One
solution would be to add a "vcard" data type, whose value would be a
fully-formed jCard (which is a JSON object).  This could be done for
both versions 2.1 and 3.0, even though 3.0 embeds its vCards by
encoding the vCard as a text value.  For example:

{
  "version":"3.0",
  "fn": "John Doe",
  "agent": {
    "vcard": {
      "version":"3.0",
      "fn": "Agent Smith"
    }
  }
}

iCalendar supports a similar data structure, called a "component".
>From what I understand, components are just like embedded vCards,
except that components are not associated with a property.  To
explain, an AGENT property in a 2.1 vCard looks like this:

BEGIN:VCARD
VERSION:2.1
FN:John Doe
AGENT:
BEGIN:VCARD
VERSION:2.1
FN:Agent Smith
END:VCARD
END:VCARD

The embedded vCard comes after the blank AGENT property.  iCalendar's
components, however, are not associated with a property.  For
instance, in the vCal below, the "VTIMEZONE" component exists by
itself, without "belonging" to a property:

BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VTIMEZONE
TZID:US-Eastern
END:VTIMEZONE
END:VCALENDAR

jCal separates its properties and components, which would not work for
encoding an AGENT property because the link between the property and
the embedded vCard would be lost:

["vcalendar",
  [ /* properties */ ],
  [ /* components */ ]
]

Regards,
Mike Angstadt
http://code.google.com/p/ez-vcard

On Tue, Jan 15, 2013 at 8:24 PM, Michael Angstadt
<mike.angstadt@gmail.com> wrote:
> Here are a few of my thoughts about the two specs:
>
> Summary:
>
> (1) jCal doesn't support grouping.
> (2) jCal eliminates the possibility for naming conflicts that
> vcarddav-json makes possible.
> (3) vcarddav-json allows property values to be encoded as objects,
> while jCal does not.
>
> (1) Grouping
>
> One problem with jCal is that it doesn't support grouping, which is
> problematic for vCards.  For example, the vCard below can't be
> JSON-encoded according to the jCal specs because the EMAIL property
> belongs to a group.
>
> BEGIN:VCARD
> VERSION:4.0
> FN:John Doe
> group.EMAIL:johndoe@hotmail.com
> END:VCARD
>
> A simple solution would be to prepend the group to the property name,
> separating it from the property name with some special character, just
> like in vCard.  For example:
>
> ["group.email", {}, "text", "johndoe@hotmail.com"]
>
> The JSON syntax could also be modified to accomodate a group name (for
> example, by adding a new array element), but some of the benefits to
> the above approach that I see are:
>
> (a) Greater compatibility with jCal.
> (b) Grouping is a fairly infrequently-used feature.  Changing the
> syntax would add extra complexity which won't be used in most
> situations.
>
> I must say, I'm not a big fan of the grouping mechanism in
> vcarddav-json.  Like Bert Greevenbosch mentioned previously, naming
> conflicts will occur if a group shares the same name as a property.
> It does, however, make it so that the group name only has to be
> declared once, which is a plus (like in xCard).
>
> (2) Naming conflicts
>
> I think one major plus about jCal is its elimination of the potential
> for naming conflicts between value type names ("text", "uri", etc) and
> parameter names.  Philipp explained this in a previous email.  Quoting
> Philipp:
>
> [[quote]]
> Another issue here might be extensibility. What happens if an
> extension draft specifies a new value type that is the same as a
> parameter, or vice versa?
>
> X-THING;VALUE=URI;URI="urn:foo":urn:bar
> vcarddav-json: { "x-thing": { "uri": ??? } }
> jCal: ["x-thing", { "uri": "urn:foo" }, "uri", "urn:bar"]
> [[/quote]]
>
> jCal prevents these naming conflicts from occurring because parameters
> and property values are stored separately.
>
> (3) JSON objects for property values
>
> On the flip-side, I think one nice feature about vcarddav-json is that
> property values are encoded as JSON objects.  This is great for
> multi-valued properties like ADR and N because each value can be
> indexed by a human-readable name.  jCal, however, requires that the
> values be appended onto the end of the property array, which means
> that they must be retrieved by index.  It also means that a
> placeholder element (like a "null" value) must be included for any
> missing components of the property value in order to preserve the
> array indexing.  The ADR property is a good example:
>
> vcarddav-json:
>
> "adr": {
>   "type": "work",
>   "street": "2875 boul. Laurier, suite D2-630",
>   "locality": "Quebec",
>   "region": "QC",
>   "code": "G1V 2M2",
>   "country": "CA"
> }
>
> jCal:
>
> ["adr", {"type":"work"}, "text", null, "2875 boul. Laurier, suite
> D2-630", "Quebec", "QC", "G1V 2M2", "CA"]
>
> The "null" in the jCal example is for the missing "extended address" field.
>
> One possible solution to this (if this is deemed a "problem" in the
> first place) would be to add an "object" value type to the jCal spec
> that allows you to specify a JSON object as the value.  For example:
>
> ["adr", {"type":"work"}, "object", {"street": "2875 boul. Laurier,
> suite D2-630", "locality":"Quebec", "region":"QC", "code": "G1V 2M2",
> "country":"CA"}]
>
> jCard & jCal in 2013!! :)
>
> Regards,
> Mike Angstadt
> http://code.google.com/p/ez-vcard
>
> On Tue, Jan 15, 2013 at 3:24 AM, Philipp Kewisch <kewisch@gmail.com> wrote:
>> Hello Folks,
>>
>> Based on discussion we have had within the calconnect group, I have just
>> posted a new version of draft-kewisch-et-al-icalendar-in-json with the
>> following changes. You can find the draft here
>> <http://www.ietf.org/id/draft-kewisch-et-al-icalendar-in-json-01.txt>.
>>
>>       *  Added information on how to handle multi-value parameter.  The
>>          decision leads to a cleaner draft for a similar proposal for
>>          vcard.
>>
>>       *  Removed the open discussion point section regarding the mime
>>          media type in favor of adding one.
>>
>> I would appreciate your feedback on the draft in order to advance on this
>> topic.
>>
>> Also, especially or the vcarddav folks, please also take a look at my
>> previous email
>> <http://www.ietf.org/mail-archive/web/vcarddav/current/msg02678.html> to get
>> a comparison between the vcarddav-json draft and the format we propose for
>> iCalendar. I would like to push forward with this and come to a consensus so
>> we can provide a compatible draft for vcards.
>>
>> I am also happy to announce that Mozilla is already testing this draft in
>> the field with the Firefox OS calendaring application. To do so, we are
>> using the ical.js library I have been working on, see
>> <https://github.com/kewisch/ical.js/>.
>>
>> Regards,
>> Philipp
>>
>> _______________________________________________
>> VCARDDAV mailing list
>> VCARDDAV@ietf.org
>> https://www.ietf.org/mailman/listinfo/vcarddav
>>

From simon.perreault@viagenie.ca  Fri Jan 18 06:16:04 2013
Return-Path: <simon.perreault@viagenie.ca>
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 21FFA21F8919; Fri, 18 Jan 2013 06:16:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.057
X-Spam-Level: 
X-Spam-Status: No, score=-2.057 tagged_above=-999 required=5 tests=[AWL=0.543,  BAYES_00=-2.599, NO_RELAYS=-0.001]
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 Gxi1Q18-n0XK; Fri, 18 Jan 2013 06:16:03 -0800 (PST)
Received: from jazz.viagenie.ca (jazz.viagenie.ca [IPv6:2620:0:230:8000::2]) by ietfa.amsl.com (Postfix) with ESMTP id A4F4F21F886C; Fri, 18 Jan 2013 06:16:03 -0800 (PST)
Received: from [IPv6:::1] (unknown [IPv6:2001:660:3001:4012:8c9f:6ad5:3e39:fc81]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 87BAB4010D; Fri, 18 Jan 2013 09:16:02 -0500 (EST)
Message-ID: <50F95952.4040209@viagenie.ca>
Date: Fri, 18 Jan 2013 15:16:50 +0100
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: Michael Angstadt <mike.angstadt@gmail.com>
References: <50F5124F.8070609@gmail.com> <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com> <CAJNb_g01wp4RL-iaEeB=vDm4XPDT4veZ8yt-UR3QXCcD=Xes7w@mail.gmail.com>
In-Reply-To: <CAJNb_g01wp4RL-iaEeB=vDm4XPDT4veZ8yt-UR3QXCcD=Xes7w@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Cc: Calsify <calsify@ietf.org>, "vcarddav@ietf.org" <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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: Fri, 18 Jan 2013 14:16:04 -0000

Le 2013-01-18 03:35, Michael Angstadt a écrit :
> Another issue is how to handle embedded vCards (i.e. AGENT).

Embedded vCards don't exist anymore in vCard 4. xCard does not support 
them. jCard should not support them.

Simon

From mike.angstadt@gmail.com  Fri Jan 18 06:44:41 2013
Return-Path: <mike.angstadt@gmail.com>
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 6646121F886F; Fri, 18 Jan 2013 06:44:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 XCeba4W+vCag; Fri, 18 Jan 2013 06:44:41 -0800 (PST)
Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by ietfa.amsl.com (Postfix) with ESMTP id C130221F886E; Fri, 18 Jan 2013 06:44:40 -0800 (PST)
Received: by mail-pa0-f53.google.com with SMTP id hz1so2155539pad.26 for <multiple recipients>; Fri, 18 Jan 2013 06:44:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=vhV0eOP1twk48H1fwH49upnEpT0BKkcWiK4LHnHLtcw=; b=nt1kBQGX7f4Bum0ToEbVeXYOCklfuLou8n0WZWWK3I2bAa7jnAAG/4DAGSnZEEJLGa /cQYMOJ2CAZHejkhsJ/LZBj6YNJ3lrhLzhRUvNP+LAHwJEuSTn+M+BG3jjTGgUSijTfl nFbjdj4LmRLhZRep8BwmROpCSI36YrxzqDk2xjU/p1SxSFo9aUEACQB1GBFBQHHCi/Uf 9QFZfDNwzp+c5YxfU4W7vyDguYFmVU82hEdQL77KfLnxTMzoac9OwBUDP+2hXFp66hUQ PB2Fel9ZW3y3aN0pJpszMTZ0iQK4uQxdE+cfdNwROsas9Ri+g4wkGPWWZVwYrFqOHExY Uhog==
MIME-Version: 1.0
X-Received: by 10.68.224.227 with SMTP id rf3mr6022801pbc.108.1358520280558; Fri, 18 Jan 2013 06:44:40 -0800 (PST)
Received: by 10.68.7.42 with HTTP; Fri, 18 Jan 2013 06:44:40 -0800 (PST)
In-Reply-To: <50F95952.4040209@viagenie.ca>
References: <50F5124F.8070609@gmail.com> <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com> <CAJNb_g01wp4RL-iaEeB=vDm4XPDT4veZ8yt-UR3QXCcD=Xes7w@mail.gmail.com> <50F95952.4040209@viagenie.ca>
Date: Fri, 18 Jan 2013 09:44:40 -0500
Message-ID: <CAJNb_g09Y7fLQ3QJHhDHY1ZtJWvoueNQ34s=tYCAj8UCt6WkFw@mail.gmail.com>
From: Michael Angstadt <mike.angstadt@gmail.com>
To: Simon Perreault <simon.perreault@viagenie.ca>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: Calsify <calsify@ietf.org>, "vcarddav@ietf.org" <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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: Fri, 18 Jan 2013 14:44:41 -0000

According to the specs, jCard supports 2.1 and 3.0, not just version 4.

On Fri, Jan 18, 2013 at 9:16 AM, Simon Perreault
<simon.perreault@viagenie.ca> wrote:
> Le 2013-01-18 03:35, Michael Angstadt a =E9crit :
>
>> Another issue is how to handle embedded vCards (i.e. AGENT).
>
>
> Embedded vCards don't exist anymore in vCard 4. xCard does not support th=
em.
> jCard should not support them.
>
> Simon

From simon.perreault@viagenie.ca  Fri Jan 18 06:46:56 2013
Return-Path: <simon.perreault@viagenie.ca>
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 27B4921F886F; Fri, 18 Jan 2013 06:46:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.193
X-Spam-Level: 
X-Spam-Status: No, score=-2.193 tagged_above=-999 required=5 tests=[AWL=0.407,  BAYES_00=-2.599, NO_RELAYS=-0.001]
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 vwRbeg9hONJn; Fri, 18 Jan 2013 06:46:55 -0800 (PST)
Received: from jazz.viagenie.ca (jazz.viagenie.ca [IPv6:2620:0:230:8000::2]) by ietfa.amsl.com (Postfix) with ESMTP id B1DBD21F886E; Fri, 18 Jan 2013 06:46:55 -0800 (PST)
Received: from [IPv6:::1] (unknown [IPv6:2001:660:3001:4012:8c9f:6ad5:3e39:fc81]) by jazz.viagenie.ca (Postfix) with ESMTPSA id B4EDF4010D; Fri, 18 Jan 2013 09:46:54 -0500 (EST)
Message-ID: <50F9608F.4020902@viagenie.ca>
Date: Fri, 18 Jan 2013 15:47:43 +0100
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: Michael Angstadt <mike.angstadt@gmail.com>
References: <50F5124F.8070609@gmail.com> <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com> <CAJNb_g01wp4RL-iaEeB=vDm4XPDT4veZ8yt-UR3QXCcD=Xes7w@mail.gmail.com> <50F95952.4040209@viagenie.ca> <CAJNb_g09Y7fLQ3QJHhDHY1ZtJWvoueNQ34s=tYCAj8UCt6WkFw@mail.gmail.com>
In-Reply-To: <CAJNb_g09Y7fLQ3QJHhDHY1ZtJWvoueNQ34s=tYCAj8UCt6WkFw@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Cc: Calsify <calsify@ietf.org>, "vcarddav@ietf.org" <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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: Fri, 18 Jan 2013 14:46:56 -0000

Le 2013-01-18 15:44, Michael Angstadt a écrit :
> According to the specs, jCard supports 2.1 and 3.0, not just version 4.

This is wrong, it should only support version 4. Doing otherwise would 
be asking for a lot of trouble.

Simon

From cyrus@daboo.name  Fri Jan 18 06:51:52 2013
Return-Path: <cyrus@daboo.name>
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 71DDC21F8888; Fri, 18 Jan 2013 06:51:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.142
X-Spam-Level: 
X-Spam-Status: No, score=-102.142 tagged_above=-999 required=5 tests=[AWL=0.457, 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 ta8xAqVxdxTh; Fri, 18 Jan 2013 06:51:52 -0800 (PST)
Received: from daboo.name (daboo.name [173.13.55.49]) by ietfa.amsl.com (Postfix) with ESMTP id DFCD721F8865; Fri, 18 Jan 2013 06:51:51 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by daboo.name (Postfix) with ESMTP id 8774E3B3B4DB; Fri, 18 Jan 2013 09:51:51 -0500 (EST)
X-Virus-Scanned: amavisd-new at example.com
Received: from daboo.name ([127.0.0.1]) by localhost (daboo.name [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6yv1UvJc_9fh; Fri, 18 Jan 2013 09:51:50 -0500 (EST)
Received: from [17.45.162.221] (unknown [173.13.55.49]) by daboo.name (Postfix) with ESMTPSA id CB5833B3B440; Fri, 18 Jan 2013 09:51:48 -0500 (EST)
Date: Fri, 18 Jan 2013 09:51:51 -0500
From: Cyrus Daboo <cyrus@daboo.name>
To: Simon Perreault <simon.perreault@viagenie.ca>, Michael Angstadt <mike.angstadt@gmail.com>
Message-ID: <8E5D2A65B43C8BA442589924@cyrus.local>
In-Reply-To: <50F9608F.4020902@viagenie.ca>
References: <50F5124F.8070609@gmail.com> <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com> <CAJNb_g01wp4RL-iaEeB=vDm4XPDT4veZ8yt-UR3QXCcD=Xes7w@mail.gmail.com> <50F95952.4040209@viagenie.ca> <CAJNb_g09Y7fLQ3QJHhDHY1ZtJWvoueNQ34s=tYCAj8UCt6WkFw@mail.gmail.com> <50F9608F.4020902@viagenie.ca>
X-Mailer: Mulberry/4.1.0a3 (Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; size=405
Cc: Calsify <calsify@ietf.org>, vcarddav@ietf.org
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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: Fri, 18 Jan 2013 14:51:52 -0000

Hi Simon,

--On January 18, 2013 3:47:43 PM +0100 Simon Perreault 
<simon.perreault@viagenie.ca> wrote:

>> According to the specs, jCard supports 2.1 and 3.0, not just version 4.
>
> This is wrong, it should only support version 4. Doing otherwise would be
> asking for a lot of trouble.

That would be one way to encourage more adoption of version 4, which would 
be a good thing IMHO.

-- 
Cyrus Daboo


From mike.angstadt@gmail.com  Fri Jan 18 07:13:22 2013
Return-Path: <mike.angstadt@gmail.com>
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 B8BDA21F888E; Fri, 18 Jan 2013 07:13:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
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 f1GfsNZAvnTT; Fri, 18 Jan 2013 07:13:22 -0800 (PST)
Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by ietfa.amsl.com (Postfix) with ESMTP id CFB4321F888A; Fri, 18 Jan 2013 07:13:21 -0800 (PST)
Received: by mail-pa0-f48.google.com with SMTP id fa1so2169072pad.35 for <multiple recipients>; Fri, 18 Jan 2013 07:13:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=lCLD03apR4BjBuiGWn2bGARYqKEQBVZD/ZKh9lP2k+Y=; b=o1NHjnkwje5zcNlWaHz8OJOLCjy5G5DeGGgbGReA25swQzQnJiNW2LQeJ8tvzFNF3X R7asOaHPl215eE8OqeRQHDj3+tPVozRAdQkGsTXlyM159QaFZn+q1fLILgMKDaQnFoNA GlkpekSA6R6lw4f6Q64Xa18Su4GvurLBDlVouTjSB6A0ZPGLAYMneDKA/MdZmC2r56Gd 4oQci08o6DhLsg8I+oQ61Z1sCJn2JmDgubqn+h/XgOOOds9q9OBRijIS3TG9qCcQ2gP6 LIyS8FFCKwanlde+HIEA9XIhqeMXFwn3H2H/bak4BcmgRpv69+hVSZGhiesJf4GfLC6i HNmg==
MIME-Version: 1.0
X-Received: by 10.68.239.232 with SMTP id vv8mr25092880pbc.53.1358522001547; Fri, 18 Jan 2013 07:13:21 -0800 (PST)
Received: by 10.68.7.42 with HTTP; Fri, 18 Jan 2013 07:13:21 -0800 (PST)
In-Reply-To: <8E5D2A65B43C8BA442589924@cyrus.local>
References: <50F5124F.8070609@gmail.com> <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com> <CAJNb_g01wp4RL-iaEeB=vDm4XPDT4veZ8yt-UR3QXCcD=Xes7w@mail.gmail.com> <50F95952.4040209@viagenie.ca> <CAJNb_g09Y7fLQ3QJHhDHY1ZtJWvoueNQ34s=tYCAj8UCt6WkFw@mail.gmail.com> <50F9608F.4020902@viagenie.ca> <8E5D2A65B43C8BA442589924@cyrus.local>
Date: Fri, 18 Jan 2013 10:13:21 -0500
Message-ID: <CAJNb_g11ngU+BzCG=ZDp_s_TUBze3BjNrafQXJc1cXXrnxY-cw@mail.gmail.com>
From: Michael Angstadt <mike.angstadt@gmail.com>
To: Cyrus Daboo <cyrus@daboo.name>
Content-Type: text/plain; charset=ISO-8859-1
Cc: Calsify <calsify@ietf.org>, "vcarddav@ietf.org" <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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: Fri, 18 Jan 2013 15:13:22 -0000

+1

On Fri, Jan 18, 2013 at 9:51 AM, Cyrus Daboo <cyrus@daboo.name> wrote:
> Hi Simon,
>
>
> --On January 18, 2013 3:47:43 PM +0100 Simon Perreault
> <simon.perreault@viagenie.ca> wrote:
>
>>> According to the specs, jCard supports 2.1 and 3.0, not just version 4.
>>
>>
>> This is wrong, it should only support version 4. Doing otherwise would be
>> asking for a lot of trouble.
>
>
> That would be one way to encourage more adoption of version 4, which would
> be a good thing IMHO.
>
> --
> Cyrus Daboo
>

From kewisch@gmail.com  Sat Jan 26 00:43:13 2013
Return-Path: <kewisch@gmail.com>
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 39C5A21F8477; Sat, 26 Jan 2013 00:43:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.598
X-Spam-Level: 
X-Spam-Status: No, score=-3.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
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 CjeKqfFCFBOP; Sat, 26 Jan 2013 00:43:12 -0800 (PST)
Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by ietfa.amsl.com (Postfix) with ESMTP id E384E21F8B02; Sat, 26 Jan 2013 00:43:11 -0800 (PST)
Received: by mail-ee0-f53.google.com with SMTP id e53so556027eek.40 for <multiple recipients>; Sat, 26 Jan 2013 00:43:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type; bh=Zu51d52bmrinomnXFzisP0pXMKPXFow9XSDlf0bO3jY=; b=MydyCZaDstEfsPbcVovYjqIFaZXQTZ2bpQtFSO9SopXAclJrUZvqv+ktdjFsRDYBXQ 21Hf2vea1HkxmFip0X9rsPqTvSr9whSglm8SkZJ91QoYS+eARXWakYjKL/7XHG/H7kg0 0ykZEYmIAtgF6OUQPdplDZMI6rtOM0sKgVzR/0RyaiiJweqkqTNQpGTVQBtHQW6bDCOD 3MfMlVYALZFGD1N1w1YFQ7ibAUQkWp89A83wsaRL92LdGF2tepalRb8uvuIsCnBkEQcb PdxXFQoH513RJymXcFDIxr4xD9yrhQq0i0GEhNXxnQP93V9l0qQllngyjWPwLCteZIa8 h+PA==
X-Received: by 10.14.174.73 with SMTP id w49mr27741895eel.17.1359189791005; Sat, 26 Jan 2013 00:43:11 -0800 (PST)
Received: from oskar.fritz.box (g231130092.adsl.alicedsl.de. [92.231.130.92]) by mx.google.com with ESMTPS id 6sm5324827eea.3.2013.01.26.00.43.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Jan 2013 00:43:10 -0800 (PST)
Message-ID: <5103971E.4050507@gmail.com>
Date: Sat, 26 Jan 2013 09:43:10 +0100
From: Philipp Kewisch <kewisch@gmail.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:18.0) Gecko/20121128 Thunderbird/18.0
MIME-Version: 1.0
To: vcarddav@ietf.org, calsify@ietf.org
References: <50F5124F.8070609@gmail.com> <50F5191D.5060806@gmail.com> <CAKOk=2ahvHjCTvyZ90yVXXd1TkVG2vgzWETjazoaoaN97za6HQ@mail.gmail.com>
In-Reply-To: <CAKOk=2ahvHjCTvyZ90yVXXd1TkVG2vgzWETjazoaoaN97za6HQ@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------040004080206060601080905"
Cc: swl@stanford.edu
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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: Sat, 26 Jan 2013 08:43:13 -0000

This is a multi-part message in MIME format.
--------------040004080206060601080905
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

Hi Scotty,

I understand that the JSON you see here is slightly different than what 
you often see (root being an object), but the data we have to handle 
here is slightly different too. What we have here is definitly ON, as in 
Javascript, Arrays are also Objects and Arrays are also part of the JSON 
spec.

The JSON you provide looks very much like what I started with when I was 
working on my library to parse iCalendar data, but as we progressed with 
the spec, more and more flaws came up. Remember we are designing a data 
format, not a library to process it. Let me show you some examples of 
what is not working:

>
> {
>      "prodid": "-//Example Corp.//Example Client//EN"],
>      "version": "2.0",
>      "vtimezones": [
What rule would this go by? Use the component name and add 's' ?
>          {
>              "tzid": "US/Eastern",
>              "last-modified": "2004-01-10T03:28:45Z",
>              "daylight": {
What happens if there are multiple daylight components? Even if thats 
not possible in this case, it could for other components so there would 
have to be lots of per-component exceptions which is neither consistent 
nor future proof.

>              "dtstamp": "2006-02-06T00:11:21Z",
>              "dtstart": {
>                  "tzid": "US/Eastern",
>                  "type": "date-time",
>                  "value": "2006-01-02T12:00:00"
>              },
So dates can have two different formats? What to use when? What if there 
is a parameter named TYPE ?

>              "summary": "Event #2",
>              "description": "We are having ... 12 pm meetings.",
>              "uid": "00959BC664CA650E933C892C@example.com"
What happens with properties that can occur multiple times or have 
multiple values (like CATEGORIES)?

My next idea back then was to turn it into an array, i.e "category": 
["abc", "def"], but then you run into consistency/performance issues 
again. Add an array for everything, i.e "summary": ["Event #2"] or do 
type checking each time?
>       
>
> Now the data can be processed with code like:
>
>      var jcal = getJCalData(…);
>
>      jcal.vevents.forEach(function (vevent) {
While I understand it would be nice to process jCal without a library 
(and you can, even with our draft), in many cases you will just end up 
duplicating code that a js library will provide to you. The easier we 
make this, the more likely it is that people will produce wrong jCal, 
because their code evolves from something simple.

I hope this give you a better feeling with the format we propose, let me 
know what you think!
Philipp






--------------040004080206060601080905
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
    <link href="chrome://translator/skin/floatingPanel.css"
      type="text/css" rel="stylesheet">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Scotty,<br>
      <br>
      I understand that the JSON you see here is slightly different than
      what you often see (root being an object), but the data we have to
      handle here is slightly different too. What we have here is
      definitly ON, as in Javascript, Arrays are also Objects and Arrays
      are also part of the JSON spec. <br>
      <br>
      The JSON you provide looks very much like what I started with when
      I was working on my library to parse iCalendar data, but as we
      progressed with the spec, more and more flaws came up. Remember we
      are designing a data format, not a library to process it. Let me
      show you some examples of what is not working:<br>
      <br>
    </div>
    <blockquote
cite="mid:CAKOk=2ahvHjCTvyZ90yVXXd1TkVG2vgzWETjazoaoaN97za6HQ@mail.gmail.com"
      type="cite">
      <pre wrap="">

{
    "prodid": "-//Example Corp.//Example Client//EN"],
    "version": "2.0",
    "vtimezones": [</pre>
    </blockquote>
    What rule would this go by? Use the component name and add 's' ?<br>
    <blockquote
cite="mid:CAKOk=2ahvHjCTvyZ90yVXXd1TkVG2vgzWETjazoaoaN97za6HQ@mail.gmail.com"
      type="cite">
      <pre wrap="">
        {
            "tzid": "US/Eastern",
            "last-modified": "2004-01-10T03:28:45Z",
            "daylight": {</pre>
    </blockquote>
    What happens if there are multiple daylight components? Even if
    thats not possible in this case, it could for other components so
    there would have to be lots of per-component exceptions which is
    neither consistent nor future proof.<br>
    <br>
    <blockquote
cite="mid:CAKOk=2ahvHjCTvyZ90yVXXd1TkVG2vgzWETjazoaoaN97za6HQ@mail.gmail.com"
      type="cite">
      <pre wrap="">            "dtstamp": "2006-02-06T00:11:21Z",
            "dtstart": {
                "tzid": "US/Eastern",
                "type": "date-time",
                "value": "2006-01-02T12:00:00"
            },</pre>
    </blockquote>
    So dates can have two different formats? What to use when? What if
    there is a parameter named TYPE ?<br>
    <br>
    <blockquote
cite="mid:CAKOk=2ahvHjCTvyZ90yVXXd1TkVG2vgzWETjazoaoaN97za6HQ@mail.gmail.com"
      type="cite">
      <pre wrap="">            "summary": "Event #2",
            "description": "We are having ... 12 pm meetings.",
            "uid": <a class="moz-txt-link-rfc2396E" href="mailto:00959BC664CA650E933C892C@example.com">"00959BC664CA650E933C892C@example.com"</a></pre>
    </blockquote>
    What happens with properties that can occur multiple times or have
    multiple values (like CATEGORIES)?<br>
    <br>
    My next idea back then was to turn it into an array, i.e "category":
    ["abc", "def"], but then you run into consistency/performance issues
    again. Add an array for everything, i.e "summary": ["Event #2"] or
    do type checking each time?<br>
    <blockquote
cite="mid:CAKOk=2ahvHjCTvyZ90yVXXd1TkVG2vgzWETjazoaoaN97za6HQ@mail.gmail.com"
      type="cite">
      <pre wrap="">
     

Now the data can be processed with code like:

    var jcal = getJCalData(…);

    jcal.vevents.forEach(function (vevent) {</pre>
    </blockquote>
    While I understand it would be nice to process jCal without a
    library (and you can, even with our draft), in many cases you will
    just end up duplicating code that a js library will provide to you.
    The easier we make this, the more likely it is that people will
    produce wrong jCal, because their code evolves from something
    simple.<br>
    <br>
    I hope this give you a better feeling with the format we propose,
    let me know what you think!<br>
    Philipp<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <div style="bottom: auto; left: 866px; right: auto; top: 476px;
      display: none;" class="translator-theme-default"
      id="translator-floating-panel">
      <div title="Click to translate"
        id="translator-floating-panel-button"></div>
    </div>
  </body>
</html>

--------------040004080206060601080905--

From kewisch@gmail.com  Sat Jan 26 00:43:51 2013
Return-Path: <kewisch@gmail.com>
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 DC1D021F8750; Sat, 26 Jan 2013 00:43:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.9
X-Spam-Level: 
X-Spam-Status: No, score=-2.9 tagged_above=-999 required=5 tests=[AWL=-0.698,  BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, WEIRD_QUOTING=1.396]
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 x3oGX+Ls7yAW; Sat, 26 Jan 2013 00:43:50 -0800 (PST)
Received: from mail-ea0-f178.google.com (mail-ea0-f178.google.com [209.85.215.178]) by ietfa.amsl.com (Postfix) with ESMTP id 4BEAB21F86BB; Sat, 26 Jan 2013 00:43:50 -0800 (PST)
Received: by mail-ea0-f178.google.com with SMTP id a14so480889eaa.23 for <multiple recipients>; Sat, 26 Jan 2013 00:43:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type; bh=2LdclLWZLuYG3yu7iFGZ6lmuI3S3N6qeoX/XNOkFuIs=; b=k9H+KkkDXEnPFsGFOOz9+YuzOHlt3y2V3pYPV+yS4urFylzT1WqJvGdXCeiILYFguM /gx2aXVHPv/V5UfWw2XT7wg1Wk8kbKPsfkk67/B7TIFmTGT+59dtMMi96GK/Lv6I6SMc O+/GVtmUotsBQyc5bl3+Apd6o5DnX9tdTZ4k67d2ohSMVF1447lMm0LRHIHcIjh72z1W Wmmj9vmJc8OymSAipqkMbKK8y+BiEGNPPt0U8G3F3sOnnP8GgDCYvnKsrcUwPTGbTP5+ L6H9TmVfjqnIiqnrYb+xFOHW9vYiou5cmITTUH7RG8vhclUpfa7MRjPkCWmvCPqo6303 nNOg==
X-Received: by 10.14.219.72 with SMTP id l48mr27573032eep.37.1359189829385; Sat, 26 Jan 2013 00:43:49 -0800 (PST)
Received: from oskar.fritz.box (g231130092.adsl.alicedsl.de. [92.231.130.92]) by mx.google.com with ESMTPS id g2sm5301724eep.16.2013.01.26.00.43.48 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Jan 2013 00:43:48 -0800 (PST)
Message-ID: <51039746.90402@gmail.com>
Date: Sat, 26 Jan 2013 09:43:50 +0100
From: Philipp Kewisch <kewisch@gmail.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:18.0) Gecko/20121128 Thunderbird/18.0
MIME-Version: 1.0
To: calsify@ietf.org, vcarddav@ietf.org
References: <50F5124F.8070609@gmail.com> <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com>
In-Reply-To: <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------090205090907030303090905"
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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: Sat, 26 Jan 2013 08:43:52 -0000

This is a multi-part message in MIME format.
--------------090205090907030303090905
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

TL;DR; version at the end of this email.


On 1/16/13 2:24 AM, Michael Angstadt wrote:
> (1) Grouping
>
> A simple solution would be to prepend the group to the property name,
> separating it from the property name with some special character, just
> like in vCard.  For example:
>
> ["group.email", {}, "text", "johndoe@hotmail.com"]
>
> (a) Greater compatibility with jCal.
> (b) Grouping is a fairly infrequently-used feature.  Changing the
> syntax would add extra complexity which won't be used in most
> situations.
I agree, I had thought about grouping, but I preferred a similar syntax 
so a library that could parse jCal could also parse jCard. For a simple 
solution, I'd go with just using the whole thing as a property name like 
you posted:

["group.email", {}, "text", "johndoe@example.com"]


Another option that would allow same property names as group names is to 
add a special type "group" in the jCard spec.

["groupname", {}, "group", [
     ["email", {}, "text", "johndoe@example.com"]
   ]
]

Which would serialize to:

groupname.EMAIL:johndoe@example.com

This would differ from a property named groupname:

["groupname", {}, "text", "foo"]

and due to the fact that properties are in an array and not in an 
object, there is no problem keeping both. The downside for this 
alternative is that there is an extra set of parameters that does not 
serialize back to iCalendar/vCard. This would "look" correct but be invalid:

["groupname", { "x-bogus": "param" }, "group", [
     ["email", { "x-ok": "param" }, "text", "johndoe@example.com"]
   ]
]

And still serialize to the following, dropping x-bogus.

groupname.EMAIL;X-OK=param:johndoe@example.com


> (3) JSON objects for property values
>
> On the flip-side, I think one nice feature about vcarddav-json is that
> property values are encoded as JSON objects.  This is great for
> multi-valued properties like ADR and N because each value can be
> indexed by a human-readable name.  jCal, however, requires that the
> values be appended onto the end of the property array, which means
> that they must be retrieved by index.  It also means that a
> placeholder element (like a "null" value) must be included for any
> missing components of the property value in order to preserve the
> array indexing.  The ADR property is a good example:
We've discussed this in the last TC-XML-JSON call, related to a 
different issue. I think this is something we could find a consensus on 
and put it into the jCal spec. On the one hand I would like to avoid 
making property values too diverse and just stay with not splitting the 
text at all:

["adr", {"type":"work"}, "text", ";2875 boul. Laurier, suite 
D2-630;Quebec;QC;G1V 2M2;CA"]

This would leave the parsing to a library. For jCal this would be 
sufficient, since the allowed text in an RRULE property value is 
limited, so its just a matter of val.split(";").forEach(function(part) { 
let k,v = part.split("="); map[k] = v }); if the library needs to access 
the parts in a map. Reasons that speak for against using objects (or 
even arrays) for structured values:

* Slight performance loss, which might add up, due to:
    ** Need for either special-casing of type per property or, to be 
safe, for every property.
    ** Additional Objects per property, which might not be needed every 
time.
* Breaks consistency. Which properties are allowed to have objects?
* What about unknown properties added via extension? What would this 
parse to:  X-MYTHING:LoOKS=;LIKE=;A=;STrUCTURED=;VAlUE=
   ** ["x-mything", {}, "text", { "looks": "", "like":"", 
"a":"","structured":"","value":"" }]
   ** ["x-mything", {}, "text", "LoOKS=;LIKE=;A=;STrUCTURED=;VAlUE="]
* If unknown objects should have a default, what separator to choose?
* For jCal, this is only valid for RRULE, which you will need a library 
anyway to process gracefully (calculate occurrences)

On the other hand, especially with vcard in mind, I can see this is 
useful. Specifically for jCal, we have discussed that it would be good 
to change GEO and REQUEST-STATUS a single-value property where the value 
is an array, i.e ["geo", {}, "float", [12.34, 56.78]]. In line with 
this, we could also allow using an object for RRULE since it has its own 
type.

 From your vCard example it seems to me that /any/ "text" value can be 
structured, so we would need to make using objects as property values 
something that is generally allowed for and warn parser implementers 
that they need to check the value type. To handle the issue with unknown 
properties, we could assert that if the parser does not know about the 
property that it should treat it as opaque text.



So let me summarize whats left to decide:

(1) Grouping:
   a) Leave "groupname.email" as the property name, or
   b) Add a pseudo-property with the special type "group" and make its 
value be an array of group members

(2) Naming conflicts: We agree here that jCal's mechanism works better

(3) Objects for structured property values
   a) Use an array, possibly with a null value for any structured property
   b) Use an object, avoids null values and makes access easier
   c) Do not parse value at all, leave it as an opaque text

My personal preferences are 1a and either 3b or 3c.

Philipp


--------------090205090907030303090905
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <link href="chrome://translator/skin/floatingPanel.css"
      type="text/css" rel="stylesheet">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">TL;DR; version at the end of this
      email.<br>
      <br>
      <br>
      On 1/16/13 2:24 AM, Michael Angstadt wrote:<br>
    </div>
    <blockquote
cite="mid:CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com"
      type="cite">
      <pre wrap="">
(1) Grouping

A simple solution would be to prepend the group to the property name,
separating it from the property name with some special character, just
like in vCard.  For example:

["group.email", {}, "text", <a class="moz-txt-link-rfc2396E" href="mailto:johndoe@hotmail.com">"johndoe@hotmail.com"</a>]

(a) Greater compatibility with jCal.
(b) Grouping is a fairly infrequently-used feature.  Changing the
syntax would add extra complexity which won't be used in most
situations.</pre>
    </blockquote>
    I agree, I had thought about grouping, but I preferred a similar
    syntax so a library that could parse jCal could also parse jCard.
    For a simple solution, I'd go with just using the whole thing as a
    property name like you posted:<br>
    <pre wrap="">["group.email", {}, "text", <a class="moz-txt-link-rfc2396E" href="mailto:johndoe@example.com">"johndoe@example.com"</a>]
</pre>
    <br>
    Another option that would allow same property names as group names
    is to add a special type "group" in the jCard spec.<br>
    <br>
    <tt>["groupname", {}, "group", [</tt><tt><br>
    </tt><tt>&nbsp;&nbsp;&nbsp; ["email", {}, "text", <a class="moz-txt-link-rfc2396E" href="mailto:johndoe@example.com">"johndoe@example.com"</a>]</tt><tt><br>
    </tt><tt>&nbsp; ]</tt><tt><br>
    </tt><tt>]<br>
    </tt><br>
    Which would serialize to:<br>
    <br>
    <tt><a class="moz-txt-link-abbreviated" href="mailto:groupname.EMAIL:johndoe@example.com">groupname.EMAIL:johndoe@example.com</a></tt><br>
    <br>
    This would differ from a property named groupname:<br>
    <br>
    <tt>["groupname", {}, "text", "foo"]</tt><br>
    <br>
    and due to the fact that properties are in an array and not in an
    object, there is no problem keeping both. The downside for this
    alternative is that there is an extra set of parameters that does
    not serialize back to iCalendar/vCard. This would "look" correct but
    be invalid:<br>
    <br>
    <tt>["groupname", { "x-bogus": "param" }, "group", [</tt><tt><br>
    </tt><tt>&nbsp;&nbsp;&nbsp; ["email", { "x-ok": "param" }, "text",
      <a class="moz-txt-link-rfc2396E" href="mailto:johndoe@example.com">"johndoe@example.com"</a>]</tt><tt><br>
    </tt><tt>&nbsp; ]</tt><tt><br>
    </tt><tt>]<br>
    </tt><br>
    And still serialize to the following, dropping x-bogus.<br>
    <br>
    <tt><a class="moz-txt-link-abbreviated" href="mailto:groupname.EMAIL;X-OK=param:johndoe@example.com">groupname.EMAIL;X-OK=param:johndoe@example.com</a></tt><br>
    <br>
    <br>
    <blockquote
cite="mid:CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com"
      type="cite">
      <pre wrap="">(3) JSON objects for property values

On the flip-side, I think one nice feature about vcarddav-json is that
property values are encoded as JSON objects.  This is great for
multi-valued properties like ADR and N because each value can be
indexed by a human-readable name.  jCal, however, requires that the
values be appended onto the end of the property array, which means
that they must be retrieved by index.  It also means that a
placeholder element (like a "null" value) must be included for any
missing components of the property value in order to preserve the
array indexing.  The ADR property is a good example:</pre>
    </blockquote>
    We've discussed this in the last TC-XML-JSON call, related to a
    different issue. I think this is something we could find a consensus
    on and put it into the jCal spec. On the one hand I would like to
    avoid making property values too diverse and just stay with not
    splitting the text at all:<br>
    <tt><br>
    </tt><tt>["adr", {"type":"work"}, "text", ";2875 boul. Laurier,
      suite D2-630;Quebec;QC;G1V 2M2</tt><tt>;CA"]</tt><br>
    <br>
    This would leave the parsing to a library. For jCal this would be
    sufficient, since the allowed text in an RRULE property value is
    limited, so its just a matter of
    val.split(";").forEach(function(part) { let k,v = part.split("=");
    map[k] = v }); if the library needs to access the parts in a map.
    Reasons that speak for against using objects (or even arrays) for
    structured values:<br>
    <br>
    * Slight performance loss, which might add up, due to:<br>
    &nbsp;&nbsp; ** Need for either special-casing of type per property or, to be
    safe, for every property.<br>
    &nbsp;&nbsp; ** Additional Objects per property, which might not be needed
    every time.<br>
    * Breaks consistency. Which properties are allowed to have objects?<br>
    * What about unknown properties added via extension? What would this
    parse to:&nbsp; X-MYTHING:LoOKS=;LIKE=;A=;STrUCTURED=;VAlUE= <br>
    &nbsp; ** ["x-mything", {}, "text", { "looks": "", "like":"",
    "a":"","structured":"","value":"" }]<br>
    &nbsp; ** ["x-mything", {}, "text", "LoOKS=;LIKE=;A=;STrUCTURED=;VAlUE="]<br>
    * If unknown objects should have a default, what separator to
    choose?<br>
    * For jCal, this is only valid for RRULE, which you will need a
    library anyway to process gracefully (calculate occurrences)<br>
    <br>
    On the other hand, especially with vcard in mind, I can see this is
    useful. Specifically for jCal, we have discussed that it would be
    good to change GEO and REQUEST-STATUS a single-value property where
    the value is an array, i.e ["geo", {}, "float", [12.34, 56.78]]. In
    line with this, we could also allow using an object for RRULE since
    it has its own type.<br>
    <br>
    From your vCard example it seems to me that <i>any</i> "text" value
    can be structured, so we would need to make using objects as
    property values something that is generally allowed for and warn
    parser implementers that they need to check the value type. To
    handle the issue with unknown properties, we could assert that if
    the parser does not know about the property that it should treat it
    as opaque text.<br>
    <br>
    <br>
    <br>
    So let me summarize whats left to decide:<br>
    <br>
    (1) Grouping:<br>
    &nbsp; a) Leave "groupname.email" as the property name, or<br>
    &nbsp; b) Add a pseudo-property with the special type "group" and make
    its value be an array of group members<br>
    <br>
    (2) Naming conflicts: We agree here that jCal's mechanism works
    better<br>
    <br>
    (3) Objects for structured property values<br>
    &nbsp; a) Use an array, possibly with a null value for any structured
    property<br>
    &nbsp; b) Use an object, avoids null values and makes access easier<br>
    &nbsp; c) Do not parse value at all, leave it as an opaque text<br>
    <br>
    My personal preferences are 1a and either 3b or 3c.<br>
    <br>
    Philipp<br>
    <br>
    <div style="bottom: auto; left: 63px; right: auto; top: 308px;
      display: none;" class="translator-theme-default"
      id="translator-floating-panel">
      <div title="Click to translate"
        id="translator-floating-panel-button"></div>
    </div>
  </body>
</html>

--------------090205090907030303090905--

From swl@stanford.edu  Tue Jan 29 13:35:29 2013
Return-Path: <swl@stanford.edu>
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 BC72D21F8890 for <vcarddav@ietfa.amsl.com>; Tue, 29 Jan 2013 13:35:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.477
X-Spam-Level: 
X-Spam-Status: No, score=-4.477 tagged_above=-999 required=5 tests=[AWL=-1.500, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 7Rq4TD81uH0H for <vcarddav@ietfa.amsl.com>; Tue, 29 Jan 2013 13:35:29 -0800 (PST)
Received: from smtp.stanford.edu (smtp1.Stanford.EDU [171.67.219.81]) by ietfa.amsl.com (Postfix) with ESMTP id 424F021F8873 for <vcarddav@ietf.org>; Tue, 29 Jan 2013 13:35:29 -0800 (PST)
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 28A0A12D0AB for <vcarddav@ietf.org>; Tue, 29 Jan 2013 13:35:29 -0800 (PST)
Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by smtp.stanford.edu (Postfix) with ESMTPS id 88B5012D3C8 for <vcarddav@ietf.org>; Tue, 29 Jan 2013 13:35:28 -0800 (PST)
Received: by mail-ob0-f199.google.com with SMTP id wd20so5385833obb.10 for <vcarddav@ietf.org>; Tue, 29 Jan 2013 13:35:27 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=Q9JZApGGQ/ZD93zOjoj4xiBq4msjS8SknV/5yMFHOgM=; b=BE9ud7y2Lfg5fTDTklrKE4CwauCz73IOwHIE5rSNLIa8BHhlrLAveGKxa967O29hPF DolCvhEyJpe9WHMjFe2wdm1ZX3EfDLrpfi5wkopQAaI87WOGo2lwc/Q7ZZYyh7ZrC8As 4gPd8t1Lu7w7dU6Oa61T+br26hydBtO88OJVu+v8leoxRM9Idk8HYtDlWUFLzA9CYb2G LF/xgTOLo0NCpMfvsw4cZgMJVkRSnMwmaik9X4RmGoMWyKYpXMiDg7Wee4oiKAKRbLZZ 6xVUSIzJLz82qjdp2OXPZ+4vUKnXA1lGKpiZst2Z9hnlAz+iUtlu+ceJ4fJIopz9upuD omNA==
X-Received: by 10.42.46.141 with SMTP id k13mr1598509icf.46.1359495327649; Tue, 29 Jan 2013 13:35:27 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.42.46.141 with SMTP id k13mr1598502icf.46.1359495327512; Tue, 29 Jan 2013 13:35:27 -0800 (PST)
Received: by 10.42.227.200 with HTTP; Tue, 29 Jan 2013 13:35:27 -0800 (PST)
In-Reply-To: <5103971E.4050507@gmail.com>
References: <50F5124F.8070609@gmail.com> <50F5191D.5060806@gmail.com> <CAKOk=2ahvHjCTvyZ90yVXXd1TkVG2vgzWETjazoaoaN97za6HQ@mail.gmail.com> <5103971E.4050507@gmail.com>
Date: Tue, 29 Jan 2013 13:35:27 -0800
Message-ID: <CAKOk=2YWeLmn15F1f7AV+kKPufOBG2S2_GAguFofrtvCCzn7eQ@mail.gmail.com>
From: Scotty Logan <swl@stanford.edu>
To: Philipp Kewisch <kewisch@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
X-Gm-Message-State: ALoCoQmSxn6pOzQwIxxWUGD/FpJbLmlUM98S5it3ReGjewXwC0MvLEC80HfpMzfBoH+Y9gGZO31b+OlguVNkL8GTaxvW0m6/ggIFxZZsHsAFyWYLjfP7nfgtIosz81DanTkuPHZl6twIV22g2zNo3XEjNX1Ufok/CA==
X-Mailman-Approved-At: Wed, 30 Jan 2013 02:17:48 -0800
Cc: calsify@ietf.org, vcarddav@ietf.org
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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: Tue, 29 Jan 2013 21:35:29 -0000

On Sat, Jan 26, 2013 at 12:43 AM, Philipp Kewisch <kewisch@gmail.com> wrote:
> I understand that the JSON you see here is slightly different than what you
> often see (root being an object),

I started out with a response to each of your points, but then it
occurred to me that the problem isn't in the naming ("vtimezone" vs
"vtimezones"), or representing values as arrays or strings:  the
problem, as I see it, is that the JSON draft appears to be an attempt
to convert the iCalendar format into JSON, rather than creating a JSON
representation of the iCalendar data model.

  Scotty

From mike.angstadt@gmail.com  Thu Jan 31 04:26:27 2013
Return-Path: <mike.angstadt@gmail.com>
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 69A9E21F86DA; Thu, 31 Jan 2013 04:26:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.202
X-Spam-Level: 
X-Spam-Status: No, score=-2.202 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1, WEIRD_QUOTING=1.396]
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 hanAWd9-kDku; Thu, 31 Jan 2013 04:26:26 -0800 (PST)
Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by ietfa.amsl.com (Postfix) with ESMTP id 13A1621F86D5; Thu, 31 Jan 2013 04:26:24 -0800 (PST)
Received: by mail-lb0-f180.google.com with SMTP id q12so3247500lbc.25 for <multiple recipients>; Thu, 31 Jan 2013 04:26:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=7+PMCQJbxEM+xpoT5jGnM/3VL4icoDLK6B6D4QNwY+s=; b=YAEOI6PWMB5SCnX+m7riSQm61JCSW9l9eVs87qRQHjo9feUv+Be3iCWjnG7ZavX254 G1UGfD/pBq20XXYEPLKm0L+rR2Fe1yXl4eX/s0bRpeKyZrdz9NpqU4bFRZl9xhDayvOf cuzmcJpOvQl4Yy+VdojhxdJO5IImQAWl+Rhg7R05x+R9zOv0jtt3nKTg7hFvR3H0f/6U MAiTYMztOiJwRvMsfh69cFybcnBQFIRsJxj15uh0KwIzJk2q2U+xcV7oWYaS01OoI7jH fBTq5H8VwDB/byt2LeuG8JbdHnD71DU12tJInDlACAPTkYJ6PF0y4uBnOIyijFicm6jL 0LSQ==
MIME-Version: 1.0
X-Received: by 10.152.144.71 with SMTP id sk7mr7730390lab.29.1359635183892; Thu, 31 Jan 2013 04:26:23 -0800 (PST)
Received: by 10.112.126.68 with HTTP; Thu, 31 Jan 2013 04:26:23 -0800 (PST)
In-Reply-To: <51039746.90402@gmail.com>
References: <50F5124F.8070609@gmail.com> <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com> <51039746.90402@gmail.com>
Date: Thu, 31 Jan 2013 07:26:23 -0500
Message-ID: <CAJNb_g1d6MjntSL3joER5aoiH=-hwKFjhqwLTgygwFerYDpYcw@mail.gmail.com>
From: Michael Angstadt <mike.angstadt@gmail.com>
To: Philipp Kewisch <kewisch@gmail.com>
Content-Type: multipart/alternative; boundary=e89a8f23470528fa1d04d494bc85
Cc: "calsify@ietf.org" <calsify@ietf.org>, "vcarddav@ietf.org" <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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, 31 Jan 2013 12:26:27 -0000

--e89a8f23470528fa1d04d494bc85
Content-Type: text/plain; charset=ISO-8859-1

Philipp,

> {
>     "prodid": "-//Example Corp.//Example Client//EN"],
>     "version": "2.0",
>     "vtimezones": [
>
> What rule would this go by? Use the component name and add 's' ?

jCard doesn't require that the property name be plural when there are
multiple instances of the property.  In this example, you'd simply use
"vtimezone".

> (1) Grouping:
>   a) Leave "groupname.email" as the property name, or
>   b) Add a pseudo-property with the special type "group" and make its
value
> be an array of group members
>
> (2) Naming conflicts: We agree here that jCal's mechanism works better
>
> (3) Objects for structured property values
>   a) Use an array, possibly with a null value for any structured property
>   b) Use an object, avoids null values and makes access easier
>   c) Do not parse value at all, leave it as an opaque text

I think I'd go with (1a).  (1b) adheres to DRY principles, but has a lot of
"fluff" (an empty parameter object, the "group" string, and complex array
nesting for the properties).  (1a) is simpler and groups aren't used that
much anyway.

Agree on (2).

I like (3b), but one problem with this, which I think you alluded to, is
how extended properties with object values should be parsed.  If an
extended property uses an object as its value, then the parser would have
no way of getting the value because it doesn't know how to interpret the
fields in the object.  However, if all properties are required to have a
"simple" value, like a string or an array of strings (3c), then extended
properties can still be parsed.

But then again, xCard basically takes the (3b) approach.  In xCard,
extended properties are rendered as XML elements with their own
namespaces.  They can have whatever child XML elements they want and aren't
limited to the standard xCard elements.  If the parser encounters such a
property, there's no way for it to parse it, so the XML gets stored in the
"XML" vCard property.  If the (3b) approach is used for JSON, maybe there
would have to be a similar "JSON" vCard property for storing the raw JSON
code of such extended types.

-Mike
http://code.google.com/p/ez-vcard


> {
>     "prodid": "-//Example Corp.//Example Client//EN"],
>     "version": "2.0",
>     "vtimezones": [
>
> What rule would this go by? Use the component name and add 's' ?
>
>         {
>             "tzid": "US/Eastern",
>             "last-modified": "2004-01-10T03:28:45Z",
>             "daylight": {

jCard doesn't require that the property name be plural when there are
multiple instances of the property.  In this example, you'd simply use
"vtimezone".

> I agree, I had thought about grouping, but I preferred a similar syntax
so a
> library that could parse jCal could also parse jCard. For a simple
solution,
> I'd go with just using the whole thing as a property name like you posted:
>
> ["group.email", {}, "text", "johndoe@example.com"]
>
> Another option that would allow same property names as group names is to
add
> a special type "group" in the jCard spec.
>
> ["groupname", {}, "group", [
>     ["email", {}, "text", "johndoe@example.com"]
>   ]
> ]

Not sure which is better.  Option 1 is simpler, but the 2nd option is
better in terms of adhering to DRY principles.  Like you alluded to, option
2 adds a lot of "fluff" to the JSON (an empty parameter object, the "group"
string, and complex array nesting for the properties).  But option 2 also
makes it easier to retrieve all properties that belong to a group.

> ["adr", {"type":"work"}, "text", ";2875 boul. Laurier, suite
> D2-630;Quebec;QC;G1V 2M2;CA"]
>
> This would leave the parsing to a library. For jCal this would be
> sufficient, since the allowed text in an RRULE property value is limited,
so
> its just a matter of val.split(";").forEach(function(part) { let k,v =
> part.split("="); map[k] = v }); if the library needs to access the parts
in
> a map. Reasons that speak for against using objects (or even arrays) for
> structured values:

split(";") won't work if there are escaped semi-colons.

> From your vCard example it seems to me that any "text" value can be
> structured, so we would need to make using objects as property values
> something that is generally allowed for and warn parser implementers that
> they need to check the value type. To handle the issue with unknown
> properties, we could assert that if the parser does not know about the
> property that it should treat it as opaque text.

No, most properties that have text values are *not* structured like ADR is.
 Most just store a regular text value.  The only structured properties are
ADR and N (and GEO in 2.1/3.0).  There are many properties that take
multiple text values though, like CATEGORIES, ORG, and NICKNAME.

That made me think of a problem with using JSON objects as property values,
which you alluded to.  If an extended property uses an object as its value,
then the parser would have no way of getting the value because it doesn't
know how to interpret the fields in the object.  However, if all properties
are required to have a "simple" value, like a string or an array of
strings, then extended properties can still be parsed.

-Mike
http://code.google.com/p/ez-vcard

On Saturday, January 26, 2013, Philipp Kewisch wrote:

>  TL;DR; version at the end of this email.
>
>
> On 1/16/13 2:24 AM, Michael Angstadt wrote:
>
> (1) Grouping
>
> A simple solution would be to prepend the group to the property name,
> separating it from the property name with some special character, just
> like in vCard.  For example:
>
> ["group.email", {}, "text", "johndoe@hotmail.com" <javascript:_e({}, 'cvml', 'johndoe@hotmail.com');>]
>
> (a) Greater compatibility with jCal.
> (b) Grouping is a fairly infrequently-used feature.  Changing the
> syntax would add extra complexity which won't be used in most
> situations.
>
>  I agree, I had thought about grouping, but I preferred a similar syntax
> so a library that could parse jCal could also parse jCard. For a simple
> solution, I'd go with just using the whole thing as a property name like
> you posted:
>
> ["group.email", {}, "text", "johndoe@example.com" <javascript:_e({}, 'cvml', 'johndoe@example.com');>]
>
>
> Another option that would allow same property names as group names is to
> add a special type "group" in the jCard spec.
>
> ["groupname", {}, "group", [
>     ["email", {}, "text", "johndoe@example.com" <javascript:_e({},
> 'cvml', 'johndoe@example.com');>]
>   ]
> ]
>
> Which would serialize to:
>
> groupname.EMAIL:johndoe@example.com <javascript:_e({}, 'cvml',
> 'groupname.EMAIL:johndoe@example.com');>
>
> This would differ from a property named groupname:
>
> ["groupname", {}, "text", "foo"]
>
> and due to the fact that properties are in an array and not in an object,
> there is no problem keeping both. The downside for this alternative is that
> there is an extra set of parameters that does not serialize back to
> iCalendar/vCard. This would "look" correct but be invalid:
>
> ["groupname", { "x-bogus": "param" }, "group", [
>     ["email", { "x-ok": "param" }, "text", "johndoe@example.com"<javascript:_e({}, 'cvml', 'johndoe@example.com');>
> ]
>   ]
> ]
>
> And still serialize to the following, dropping x-bogus.
>
> groupname.EMAIL;X-OK=param:johndoe@example.com <javascript:_e({}, 'cvml',
> 'groupname.EMAIL;X-OK\x3dparam:johndoe@example.com');>
>
>
>  (3) JSON objects for property values
>
> On the flip-side, I think one nice feature about vcarddav-json is that
> property values are encoded as JSON objects.  This is great for
> multi-valued properties like ADR and N because each value can be
> indexed by a human-readable name.  jCal, however, requires that the
> values be appended onto the end of the property array, which means
> that they must be retrieved by index.  It also means that a
> placeholder element (like a "null" value) must be included for any
> missing components of the property value in order to preserve the
> array indexing.  The ADR property is a good example:
>
>  We've discussed this in the last TC-XML-JSON call, related to a different
> issue. I think this is something we could find a consensus on and put it
> into the jCal spec. On the one hand I would like to avoid making property
> values too diverse and just stay with not splitting the text at all:
>
> ["adr", {"type":"work"}, "text", ";2875 boul. Laurier, suite
> D2-630;Quebec;QC;G1V 2M2;CA"]
>
> This would leave the parsing to a library. For jCal this would be
> sufficient, since the allowed text in an RRULE property value is limited,
> so its just a matter of val.split(";").forEach(function(part) { let k,v =
> part.split("="); map[k] = v }); if the library needs to access the parts in
> a map. Reasons that speak for against using objects (or even arrays) for
> structured values:
>
> * Slight performance loss, which might add up, due to:
>    ** Need for either special-casing of type per property or, to be safe,
> for every property.
>    ** Additional Objects per property, which might not be needed every
> time.
> * Breaks consistency. Which properties are allowed to have objects?
> * What about unknown properties added via extension? What would this parse
> to:  X-MYTHING:LoOKS=;LIKE=;A=;STrUCTURED=;VAlUE=
>   ** ["x-mything", {}, "text", { "looks": "", "like":"",
> "a":"","structured":"","value":"" }]
>   ** ["x-mything", {}, "text", "LoOKS=;LIKE=;A=;STrUCTURED=;VAlUE="]
> * If unknown objects should have a default, what separator to choose?
> * For jCal, this is only valid for RRULE, which you will need a library
> anyway to process gracefully (calculate occurrences)
>
> On the other hand, especially with vcard in mind, I can see this is
> useful. Specifically for jCal, we have discussed that it would be good to
> change GEO and REQUEST-STATUS a single-value property where the value is an
> array, i.e ["geo", {}, "float", [12.34, 56.78]]. In line with this, we
> could also allow using an object for RRULE since it has its own type.
>
> From your vCard example it seems to me that *any* "text" value can be
> structured, so we would need to make using objects as property values
> something that is generally allowed for and warn parser implementers that
> they need to check the value type. To handle the issue with unknown
> properties, we could assert that if the parser does not know about the
> property that it should treat it as opaque text.
>
>
>
> So let me summarize whats left to decide:
>
> (1) Grouping:
>   a) Leave "groupname.email" as the property name, or
>   b) Add a pseudo-property with the special type "group" and make its
> value be an array of group members
>
> (2) Naming conflicts: We agree here that jCal's mechanism works better
>
> (3) Objects for structured property values
>   a) Use an array, possibly with a null value for any structured property
>   b) Use an object, avoids null values and makes access easier
>   c) Do not parse value at all, leave it as an opaque text
>
> My personal preferences are 1a and either 3b or 3c.
>
> Philipp
>
>

--e89a8f23470528fa1d04d494bc85
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<font><span style=3D"line-height:normal;background-color:rgba(255,255,255,0=
)">Philipp,<br><br>&gt; {<br>&gt; =A0 =A0 &quot;prodid&quot;: &quot;-//Exam=
ple Corp.//Example Client//EN&quot;],<br>&gt; =A0 =A0 &quot;version&quot;: =
&quot;2.0&quot;,<br>
&gt; =A0 =A0 &quot;vtimezones&quot;: [<br>&gt;<br>&gt; What rule would this=
 go by? Use the component name and add &#39;s&#39; ?<br><br>jCard doesn&#39=
;t require that the property name be plural when there are multiple instanc=
es of the property. =A0In this example, you&#39;d simply use &quot;vtimezon=
e&quot;.<br>
<br>&gt; (1) Grouping:<br>&gt; =A0 a) Leave &quot;groupname.email&quot; as =
the property name, or<br>&gt; =A0 b) Add a pseudo-property with the special=
 type &quot;group&quot; and make its value<br>&gt; be an array of group mem=
bers<br>
&gt;<br>&gt; (2) Naming conflicts: We agree here that jCal&#39;s mechanism =
works better<br>&gt;<br>&gt; (3) Objects for structured property values<br>=
&gt; =A0 a) Use an array, possibly with a null value for any structured pro=
perty<br>
&gt; =A0 b) Use an object, avoids null values and makes access easier<br>&g=
t; =A0 c) Do not parse value at all, leave it as an opaque text<br><br>I th=
ink I&#39;d go with (1a). =A0(1b)=A0adheres to DRY principles, but has a lo=
t of &quot;fluff&quot; (an empty parameter object, the &quot;group&quot; st=
ring, and complex array nesting for the properties). =A0(1a)=A0is=A0simpler=
 and groups aren&#39;t used that much anyway.<br>
<br>Agree on (2).<br><br>I like (3b), but one problem with this, which I th=
ink you alluded to, is how extended properties with object values should be=
 parsed. =A0If an extended property uses an object as its value, then the p=
arser would have no way of getting the value because it doesn&#39;t know ho=
w to interpret the fields in the object. =A0However, if all properties are =
required to have a &quot;simple&quot; value, like a string or an array of s=
trings (3c), then extended properties can still be parsed.</span></font><di=
v>
<font><span style=3D"line-height:normal;background-color:rgba(255,255,255,0=
)"><br></span></font></div><div><font><span style=3D"line-height:normal;bac=
kground-color:rgba(255,255,255,0)">But then again, xCard basically takes th=
e (3b) approach. =A0In xCard, extended properties are rendered as XML eleme=
nts with their own namespaces.=A0=A0They=A0can have whatever child XML=A0el=
ements they want and aren&#39;t limited to the standard=A0xCard elements. =
=A0If the parser encounters such a property, there&#39;s no way for it to p=
arse it, so the=A0XML gets stored in the &quot;XML&quot;=A0vCard property. =
=A0If the (3b) approach is used for JSON,=A0maybe there would have to be a =
similar &quot;JSON&quot;=A0vCard property for storing the raw JSON code of=
=A0such=A0extended types.</span></font></div>
<div><font><span style=3D"line-height:normal;background-color:rgba(255,255,=
255,0)"><br></span></font></div><div><font><span style=3D"line-height:norma=
l;background-color:rgba(255,255,255,0)">-Mike</span></font></div><font colo=
r=3D"#000000"><span style=3D"line-height:normal;background-color:rgba(255,2=
55,255,0)"><a href=3D"http://code.google.com/p/ez-vcard" target=3D"_blank">=
http://code.google.com/p/ez-vcard</a><br>
</span></font><div><font><span style=3D"line-height:normal;background-color=
:rgba(255,255,255,0)"><br><br>&gt; {<br>&gt; =A0 =A0 &quot;prodid&quot;: &q=
uot;-//Example Corp.//Example Client//EN&quot;],<br>&gt; =A0 =A0 &quot;vers=
ion&quot;: &quot;2.0&quot;,<br>
&gt; =A0 =A0 &quot;vtimezones&quot;: [<br>&gt;<br>&gt; What rule would this=
 go by? Use the component name and add &#39;s&#39; ?<br>&gt;<br>&gt; =A0 =
=A0 =A0 =A0 {<br>&gt; =A0 =A0 =A0 =A0 =A0 =A0 &quot;tzid&quot;: &quot;US/Ea=
stern&quot;,<br>&gt; =A0 =A0 =A0 =A0 =A0 =A0 &quot;last-modified&quot;: &qu=
ot;2004-01-10T03:28:45Z&quot;,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 &quot;daylight&quot;: {<br><br>jCard doesn&#39=
;t require that the property name be plural when there are multiple instanc=
es of the property. =A0In this example, you&#39;d simply use &quot;vtimezon=
e&quot;.<br>
<br>&gt; I agree, I had thought about grouping, but I preferred a similar s=
yntax so a<br>&gt; library that could parse jCal could also parse jCard. Fo=
r a simple solution,<br>&gt; I&#39;d go with just using the whole thing as =
a property name like you posted:<br>
&gt;<br>&gt; [&quot;group.email&quot;, {}, &quot;text&quot;, &quot;<a>johnd=
oe@example.com</a>&quot;]<br>&gt;<br>&gt; Another option that would allow s=
ame property names as group names is to add<br>&gt; a special type &quot;gr=
oup&quot; in the jCard spec.<br>
&gt;<br>&gt; [&quot;groupname&quot;, {}, &quot;group&quot;, [<br>&gt; =A0 =
=A0 [&quot;email&quot;, {}, &quot;text&quot;, &quot;<a>johndoe@example.com<=
/a>&quot;]<br>&gt; =A0 ]<br>&gt; ]<br><br>Not sure which is better. =A0Opti=
on 1 is simpler, but the 2nd option is better in terms of adhering to DRY p=
rinciples. =A0Like you alluded to, option 2 adds a lot of &quot;fluff&quot;=
 to the JSON (an empty parameter object, the &quot;group&quot; string, and =
complex array nesting for the properties). =A0But option 2 also makes it ea=
sier to retrieve all properties that belong to a group.<br>
<br>&gt; [&quot;adr&quot;, {&quot;type&quot;:&quot;work&quot;}, &quot;text&=
quot;, &quot;;2875 boul. Laurier, suite<br>&gt; D2-630;Quebec;QC;G1V 2M2;CA=
&quot;]<br>&gt;<br>&gt; This would leave the parsing to a library. For jCal=
 this would be<br>
&gt; sufficient, since the allowed text in an RRULE property value is limit=
ed, so<br>&gt; its just a matter of val.split(&quot;;&quot;).forEach(functi=
on(part) { let k,v =3D<br>&gt; part.split(&quot;=3D&quot;); map[k] =3D v })=
; if the library needs to access the parts in<br>
&gt; a map. Reasons that speak for against using objects (or even arrays) f=
or<br>&gt; structured values:<br><br>split(&quot;;&quot;) won&#39;t work if=
 there are escaped semi-colons.<br><br>&gt; From your vCard example it seem=
s to me that any &quot;text&quot; value can be<br>
&gt; structured, so we would need to make using objects as property values<=
br>&gt; something that is generally allowed for and warn parser implementer=
s that<br>&gt; they need to check the value type. To handle the issue with =
unknown<br>
&gt; properties, we could assert that if the parser does not know about the=
<br>&gt; property that it should treat it as opaque text.<br><br>No, most p=
roperties that have text values are *not* structured like ADR is. =A0Most j=
ust store a regular text value. =A0The only structured properties are ADR a=
nd N (and GEO in 2.1/3.0). =A0There are many properties that take multiple =
text values though, like CATEGORIES, ORG, and NICKNAME.<br>
<br>That made me think of a problem with using JSON objects as property val=
ues, which you alluded to. =A0If an extended property uses an object as its=
 value, then the parser would have no way of getting the value because it d=
oesn&#39;t know how to interpret the fields in the object. =A0However, if a=
ll properties are required to have a &quot;simple&quot; value, like a strin=
g or an array of strings, then extended properties can still be parsed.<br>
<br>-Mike<br><a href=3D"http://code.google.com/p/ez-vcard" target=3D"_blank=
">http://code.google.com/p/ez-vcard</a></span></font></div><br>On Saturday,=
 January 26, 2013, Philipp Kewisch  wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
">

 =20
   =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    <div>TL;DR; version at the end of this
      email.<br>
      <br>
      <br>
      On 1/16/13 2:24 AM, Michael Angstadt wrote:<br>
    </div>
    <blockquote type=3D"cite">
      <pre>(1) Grouping

A simple solution would be to prepend the group to the property name,
separating it from the property name with some special character, just
like in vCard.  For example:

[&quot;group.email&quot;, {}, &quot;text&quot;, <a href=3D"javascript:_e({}=
, &#39;cvml&#39;, &#39;johndoe@hotmail.com&#39;);" target=3D"_blank">&quot;=
johndoe@hotmail.com&quot;</a>]

(a) Greater compatibility with jCal.
(b) Grouping is a fairly infrequently-used feature.  Changing the
syntax would add extra complexity which won&#39;t be used in most
situations.</pre>
    </blockquote>
    I agree, I had thought about grouping, but I preferred a similar
    syntax so a library that could parse jCal could also parse jCard.
    For a simple solution, I&#39;d go with just using the whole thing as a
    property name like you posted:<br>
    <pre>[&quot;group.email&quot;, {}, &quot;text&quot;, <a href=3D"javascr=
ipt:_e({}, &#39;cvml&#39;, &#39;johndoe@example.com&#39;);" target=3D"_blan=
k">&quot;johndoe@example.com&quot;</a>]
</pre>
    <br>
    Another option that would allow same property names as group names
    is to add a special type &quot;group&quot; in the jCard spec.<br>
    <br>
    <tt>[&quot;groupname&quot;, {}, &quot;group&quot;, [</tt><tt><br>
    </tt><tt>=A0=A0=A0 [&quot;email&quot;, {}, &quot;text&quot;, <a href=3D=
"javascript:_e({}, &#39;cvml&#39;, &#39;johndoe@example.com&#39;);" target=
=3D"_blank">&quot;johndoe@example.com&quot;</a>]</tt><tt><br>
    </tt><tt>=A0 ]</tt><tt><br>
    </tt><tt>]<br>
    </tt><br>
    Which would serialize to:<br>
    <br>
    <tt><a href=3D"javascript:_e({}, &#39;cvml&#39;, &#39;groupname.EMAIL:j=
ohndoe@example.com&#39;);" target=3D"_blank">groupname.EMAIL:johndoe@exampl=
e.com</a></tt><br>
    <br>
    This would differ from a property named groupname:<br>
    <br>
    <tt>[&quot;groupname&quot;, {}, &quot;text&quot;, &quot;foo&quot;]</tt>=
<br>
    <br>
    and due to the fact that properties are in an array and not in an
    object, there is no problem keeping both. The downside for this
    alternative is that there is an extra set of parameters that does
    not serialize back to iCalendar/vCard. This would &quot;look&quot; corr=
ect but
    be invalid:<br>
    <br>
    <tt>[&quot;groupname&quot;, { &quot;x-bogus&quot;: &quot;param&quot; },=
 &quot;group&quot;, [</tt><tt><br>
    </tt><tt>=A0=A0=A0 [&quot;email&quot;, { &quot;x-ok&quot;: &quot;param&=
quot; }, &quot;text&quot;,
      <a href=3D"javascript:_e({}, &#39;cvml&#39;, &#39;johndoe@example.com=
&#39;);" target=3D"_blank">&quot;johndoe@example.com&quot;</a>]</tt><tt><br=
>
    </tt><tt>=A0 ]</tt><tt><br>
    </tt><tt>]<br>
    </tt><br>
    And still serialize to the following, dropping x-bogus.<br>
    <br>
    <tt><a href=3D"javascript:_e({}, &#39;cvml&#39;, &#39;groupname.EMAIL;X=
-OK\x3dparam:johndoe@example.com&#39;);" target=3D"_blank">groupname.EMAIL;=
X-OK=3Dparam:johndoe@example.com</a></tt><br>
    <br>
    <br>
    <blockquote type=3D"cite">
      <pre>(3) JSON objects for property values

On the flip-side, I think one nice feature about vcarddav-json is that
property values are encoded as JSON objects.  This is great for
multi-valued properties like ADR and N because each value can be
indexed by a human-readable name.  jCal, however, requires that the
values be appended onto the end of the property array, which means
that they must be retrieved by index.  It also means that a
placeholder element (like a &quot;null&quot; value) must be included for an=
y
missing components of the property value in order to preserve the
array indexing.  The ADR property is a good example:</pre>
    </blockquote>
    We&#39;ve discussed this in the last TC-XML-JSON call, related to a
    different issue. I think this is something we could find a consensus
    on and put it into the jCal spec. On the one hand I would like to
    avoid making property values too diverse and just stay with not
    splitting the text at all:<br>
    <tt><br>
    </tt><tt>[&quot;adr&quot;, {&quot;type&quot;:&quot;work&quot;}, &quot;t=
ext&quot;, &quot;;2875 boul. Laurier,
      suite D2-630;Quebec;QC;G1V 2M2</tt><tt>;CA&quot;]</tt><br>
    <br>
    This would leave the parsing to a library. For jCal this would be
    sufficient, since the allowed text in an RRULE property value is
    limited, so its just a matter of
    val.split(&quot;;&quot;).forEach(function(part) { let k,v =3D part.spli=
t(&quot;=3D&quot;);
    map[k] =3D v }); if the library needs to access the parts in a map.
    Reasons that speak for against using objects (or even arrays) for
    structured values:<br>
    <br>
    * Slight performance loss, which might add up, due to:<br>
    =A0=A0 ** Need for either special-casing of type per property or, to be
    safe, for every property.<br>
    =A0=A0 ** Additional Objects per property, which might not be needed
    every time.<br>
    * Breaks consistency. Which properties are allowed to have objects?<br>
    * What about unknown properties added via extension? What would this
    parse to:=A0 X-MYTHING:LoOKS=3D;LIKE=3D;A=3D;STrUCTURED=3D;VAlUE=3D <br=
>
    =A0 ** [&quot;x-mything&quot;, {}, &quot;text&quot;, { &quot;looks&quot=
;: &quot;&quot;, &quot;like&quot;:&quot;&quot;,
    &quot;a&quot;:&quot;&quot;,&quot;structured&quot;:&quot;&quot;,&quot;va=
lue&quot;:&quot;&quot; }]<br>
    =A0 ** [&quot;x-mything&quot;, {}, &quot;text&quot;, &quot;LoOKS=3D;LIK=
E=3D;A=3D;STrUCTURED=3D;VAlUE=3D&quot;]<br>
    * If unknown objects should have a default, what separator to
    choose?<br>
    * For jCal, this is only valid for RRULE, which you will need a
    library anyway to process gracefully (calculate occurrences)<br>
    <br>
    On the other hand, especially with vcard in mind, I can see this is
    useful. Specifically for jCal, we have discussed that it would be
    good to change GEO and REQUEST-STATUS a single-value property where
    the value is an array, i.e [&quot;geo&quot;, {}, &quot;float&quot;, [12=
.34, 56.78]]. In
    line with this, we could also allow using an object for RRULE since
    it has its own type.<br>
    <br>
    From your vCard example it seems to me that <i>any</i> &quot;text&quot;=
 value
    can be structured, so we would need to make using objects as
    property values something that is generally allowed for and warn
    parser implementers that they need to check the value type. To
    handle the issue with unknown properties, we could assert that if
    the parser does not know about the property that it should treat it
    as opaque text.<br>
    <br>
    <br>
    <br>
    So let me summarize whats left to decide:<br>
    <br>
    (1) Grouping:<br>
    =A0 a) Leave &quot;groupname.email&quot; as the property name, or<br>
    =A0 b) Add a pseudo-property with the special type &quot;group&quot; an=
d make
    its value be an array of group members<br>
    <br>
    (2) Naming conflicts: We agree here that jCal&#39;s mechanism works
    better<br>
    <br>
    (3) Objects for structured property values<br>
    =A0 a) Use an array, possibly with a null value for any structured
    property<br>
    =A0 b) Use an object, avoids null values and makes access easier<br>
    =A0 c) Do not parse value at all, leave it as an opaque text<br>
    <br>
    My personal preferences are 1a and either 3b or 3c.<br>
    <br>
    Philipp<br>
    <br>
    <div>
      <div title=3D"Click to translate"></div>
    </div>
  </div>

</blockquote>

--e89a8f23470528fa1d04d494bc85--

From mike.angstadt@gmail.com  Thu Jan 31 06:04:56 2013
Return-Path: <mike.angstadt@gmail.com>
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 D8AB721F86AE; Thu, 31 Jan 2013 06:04:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.204
X-Spam-Level: 
X-Spam-Status: No, score=-1.204 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001, WEIRD_QUOTING=1.396]
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 otRV1n6CVxy3; Thu, 31 Jan 2013 06:04:56 -0800 (PST)
Received: from mail-la0-x236.google.com (la-in-x0236.1e100.net [IPv6:2a00:1450:4010:c03::236]) by ietfa.amsl.com (Postfix) with ESMTP id 949FE21F8540; Thu, 31 Jan 2013 06:04:49 -0800 (PST)
Received: by mail-la0-f54.google.com with SMTP id gw10so1961458lab.27 for <multiple recipients>; Thu, 31 Jan 2013 06:04:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=jdHlUMNuL4UOaHAv2toQh2PeSDqjqSSg85ZQLJy8XHI=; b=qhhbWwRVwD4TEM7AqgvCiQI8xoM1Gl8K0WLsfMoyM5ZqujggB4Q8otN3AtsGXeFfvI DmmGrHrw0x1DznCApT8+cDpwX17K5NTCH65X0Gm/G85DBKJYVkraBgPbgZXUG5L67MPy AAqPYi0n/N1PlYhXfh45lCUg8yXR1S+ZnCc0XFyavPxApvps/g5Txnee7guMxz+nOdlK fJUkNjpBgbkUCsaAJ+AQqYGsmRVWKskpOI+IFFuHMSRuf8z+tHZgJ1wM2bD44jP6lnLJ BwdiZxThbF516UVVeWAfzvd74zlAKE/7hZpTgqzQZWmV3/TuaVctRC6b5ejbqekskkmu DN6g==
MIME-Version: 1.0
X-Received: by 10.152.145.8 with SMTP id sq8mr7985973lab.21.1359641088188; Thu, 31 Jan 2013 06:04:48 -0800 (PST)
Received: by 10.112.126.68 with HTTP; Thu, 31 Jan 2013 06:04:47 -0800 (PST)
In-Reply-To: <CAJNb_g1d6MjntSL3joER5aoiH=-hwKFjhqwLTgygwFerYDpYcw@mail.gmail.com>
References: <50F5124F.8070609@gmail.com> <CAJNb_g0By0BdxMp3UgyYRkJYEXsLJ4GdnaKY_zCTHeJm9VChXw@mail.gmail.com> <51039746.90402@gmail.com> <CAJNb_g1d6MjntSL3joER5aoiH=-hwKFjhqwLTgygwFerYDpYcw@mail.gmail.com>
Date: Thu, 31 Jan 2013 09:04:47 -0500
Message-ID: <CAJNb_g1K2a92xGmXXCB6p3BB4ci67qUgLTc0-3=XYyB9uxkHog@mail.gmail.com>
From: Michael Angstadt <mike.angstadt@gmail.com>
To: Philipp Kewisch <kewisch@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: "calsify@ietf.org" <calsify@ietf.org>, "vcarddav@ietf.org" <vcarddav@ietf.org>
Subject: Re: [VCARDDAV] New Version of the iCalendar in JSON (jCal) draft, feedback requested
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, 31 Jan 2013 14:04:57 -0000

Oops sorry, I sent part of my draft email that I didn't mean to send.
You can ignore everything after my first signature.  This is what
happens when you try to write detailed emails on an iPad. >:(

-Mike

On Thu, Jan 31, 2013 at 7:26 AM, Michael Angstadt
<mike.angstadt@gmail.com> wrote:
> Philipp,
>
>
>> {
>>     "prodid": "-//Example Corp.//Example Client//EN"],
>>     "version": "2.0",
>>     "vtimezones": [
>>
>> What rule would this go by? Use the component name and add 's' ?
>
> jCard doesn't require that the property name be plural when there are
> multiple instances of the property.  In this example, you'd simply use
> "vtimezone".
>
>
>> (1) Grouping:
>>   a) Leave "groupname.email" as the property name, or
>>   b) Add a pseudo-property with the special type "group" and make its
>> value
>> be an array of group members
>>
>> (2) Naming conflicts: We agree here that jCal's mechanism works better
>>
>> (3) Objects for structured property values
>>   a) Use an array, possibly with a null value for any structured property
>>   b) Use an object, avoids null values and makes access easier
>>   c) Do not parse value at all, leave it as an opaque text
>
> I think I'd go with (1a).  (1b) adheres to DRY principles, but has a lot of
> "fluff" (an empty parameter object, the "group" string, and complex array
> nesting for the properties).  (1a) is simpler and groups aren't used that
> much anyway.
>
> Agree on (2).
>
> I like (3b), but one problem with this, which I think you alluded to, is how
> extended properties with object values should be parsed.  If an extended
> property uses an object as its value, then the parser would have no way of
> getting the value because it doesn't know how to interpret the fields in the
> object.  However, if all properties are required to have a "simple" value,
> like a string or an array of strings (3c), then extended properties can
> still be parsed.
>
> But then again, xCard basically takes the (3b) approach.  In xCard, extended
> properties are rendered as XML elements with their own namespaces.  They can
> have whatever child XML elements they want and aren't limited to the
> standard xCard elements.  If the parser encounters such a property, there's
> no way for it to parse it, so the XML gets stored in the "XML" vCard
> property.  If the (3b) approach is used for JSON, maybe there would have to
> be a similar "JSON" vCard property for storing the raw JSON code of such
> extended types.
>
> -Mike
> http://code.google.com/p/ez-vcard
>
>
>> {
>>     "prodid": "-//Example Corp.//Example Client//EN"],
>>     "version": "2.0",
>>     "vtimezones": [
>>
>> What rule would this go by? Use the component name and add 's' ?
>>
>>         {
>>             "tzid": "US/Eastern",
>>             "last-modified": "2004-01-10T03:28:45Z",
>>             "daylight": {
>
> jCard doesn't require that the property name be plural when there are
> multiple instances of the property.  In this example, you'd simply use
> "vtimezone".
>
>
>> I agree, I had thought about grouping, but I preferred a similar syntax so
>> a
>> library that could parse jCal could also parse jCard. For a simple
>> solution,
>> I'd go with just using the whole thing as a property name like you posted:
>>
>> ["group.email", {}, "text", "johndoe@example.com"]
>>
>> Another option that would allow same property names as group names is to
>> add
>> a special type "group" in the jCard spec.
>>
>> ["groupname", {}, "group", [
>>     ["email", {}, "text", "johndoe@example.com"]
>>   ]
>> ]
>
> Not sure which is better.  Option 1 is simpler, but the 2nd option is better
> in terms of adhering to DRY principles.  Like you alluded to, option 2 adds
> a lot of "fluff" to the JSON (an empty parameter object, the "group" string,
> and complex array nesting for the properties).  But option 2 also makes it
> easier to retrieve all properties that belong to a group.
>
>
>> ["adr", {"type":"work"}, "text", ";2875 boul. Laurier, suite
>> D2-630;Quebec;QC;G1V 2M2;CA"]
>>
>> This would leave the parsing to a library. For jCal this would be
>> sufficient, since the allowed text in an RRULE property value is limited,
>> so
>> its just a matter of val.split(";").forEach(function(part) { let k,v =
>> part.split("="); map[k] = v }); if the library needs to access the parts
>> in
>> a map. Reasons that speak for against using objects (or even arrays) for
>> structured values:
>
> split(";") won't work if there are escaped semi-colons.
>
>
>> From your vCard example it seems to me that any "text" value can be
>> structured, so we would need to make using objects as property values
>> something that is generally allowed for and warn parser implementers that
>> they need to check the value type. To handle the issue with unknown
>> properties, we could assert that if the parser does not know about the
>> property that it should treat it as opaque text.
>
> No, most properties that have text values are *not* structured like ADR is.
> Most just store a regular text value.  The only structured properties are
> ADR and N (and GEO in 2.1/3.0).  There are many properties that take
> multiple text values though, like CATEGORIES, ORG, and NICKNAME.
>
> That made me think of a problem with using JSON objects as property values,
> which you alluded to.  If an extended property uses an object as its value,
> then the parser would have no way of getting the value because it doesn't
> know how to interpret the fields in the object.  However, if all properties
> are required to have a "simple" value, like a string or an array of strings,
> then extended properties can still be parsed.
>
> -Mike
> http://code.google.com/p/ez-vcard
>
> On Saturday, January 26, 2013, Philipp Kewisch wrote:
>>
>> TL;DR; version at the end of this email.
>>
>>
>> On 1/16/13 2:24 AM, Michael Angstadt wrote:
>>
>> (1) Grouping
>>
>> A simple solution would be to prepend the group to the property name,
>> separating it from the property name with some special character, just
>> like in vCard.  For example:
>>
>> ["group.email", {}, "text", "johndoe@hotmail.com"]
>>
>> (a) Greater compatibility with jCal.
>> (b) Grouping is a fairly infrequently-used feature.  Changing the
>> syntax would add extra complexity which won't be used in most
>> situations.
>>
>> I agree, I had thought about grouping, but I preferred a similar syntax so
>> a library that could parse jCal could also parse jCard. For a simple
>> solution, I'd go with just using the whole thing as a property name like you
>> posted:
>>
>> ["group.email", {}, "text", "johndoe@example.com"]
>>
>>
>> Another option that would allow same property names as group names is to
>> add a special type "group" in the jCard spec.
>>
>> ["groupname", {}, "group", [
>>     ["email", {}, "text", "johndoe@example.com"]
>>   ]
>> ]
>>
>> Which would serialize to:
>>
>> groupname.EMAIL:johndoe@example.com
>>
>> This would differ from a property named groupname:
>>
>> ["groupname", {}, "text", "foo"]
>>
>> and due to the fact that properties are in an array and not in an object,
>> there is no problem keeping both. The downside for this alternative is that
>> there is an extra set of parameters that does not serialize back to
>> iCalendar/vCard. This would "look" correct but be invalid:
>>
>> ["groupname", { "x-bogus": "param" }, "group", [
>>     ["email", { "x-ok": "param" }, "text", "johndoe@example.com"]
>>   ]
>> ]
>>
>> And still serialize to the following, dropping x-bogus.
>>
>> groupname.EMAIL;X-OK=param:johndoe@example.com
>>
>>
>> (3) JSON objects for property values
>>
>> On the flip-side, I think one nice feature about vcarddav-json is that
>> property values are encoded as JSON objects.  This is great for
>> multi-valued properties like ADR and N because each value can be
>> indexed by a human-readable name.  jCal, however, requires that the
>> values be appended onto the end of the property array, which means
>> that they must be retrieved by index.  It also means that a
>> placeholder element (like a "null" value) must be included for any
>> missing components of the property value in order to preserve the
>> array indexing.  The ADR property is a good example:
>>
>> We've discussed this in the last TC-XML-JSON call, related to a different
>> issue. I think this is something we could find a consensus on and put it
>> into the jCal spec. On the one hand I would like to avoid making property
>> values too diverse and just stay with not splitting the text at all:
>>
>> ["adr", {"type":"work"}, "text", ";2875 boul. Laurier, suite
>> D2-630;Quebec;QC;G1V 2M2;CA"]
>>
>> This would leave the parsing to a library. For jCal this would be
>> sufficient, since the allowed text in an RRULE property value is limited, so
>> its just a matter of val.split(";").forEach(function(part) { let k,v =
>> part.split("="); map[k] = v }); if the library needs to access the parts in
>> a map. Reasons that speak for against using objects (or even arrays) for
>> structured values:
>>
>> * Slight performance loss, which might add up, due to:
>>    ** Need for either special-casing of type per property or, to be safe,
>> for every property.
>>    ** Additional Objects per property, which might not be needed every
>> time.
>> * Breaks consistency. Which properties are allowed to have objects?
>> * What about unknown properties added via extension? What would this parse
>> to:  X-MYTHING:LoOKS=;LIKE=;A=;STrUCTURED=;VAlUE=
>>   ** ["x-mything", {}, "text", { "looks": "", "like":"",
>> "a":"","structured":"","value":"" }]
>>   ** ["x-mything", {}, "text", "LoOKS=;LIKE=;A=;STrUCTURED=;VAlUE="]
>> * If unknown objects should have a default, what separator to choose?
>> * For jCal, this is only valid for RRULE, which you will need a library
>> anyway to process gracefully (calculate occurrences)
>>
>> On the other hand, especially with vcard in mind, I can see this is
>> useful. Specifically for jCal, we have discussed that it would be good to
>> change GEO and REQUEST-STATUS a single-value property where the value is an
>> array, i.e ["geo", {}, "float", [12.34, 56.78]]. In line with this, we could
>> also allow using an object for RRULE since it has its own type.
>>
>> From your vCard example it seems to me that any "text" value can be
>> structured, so we would need to make using objects as property values
>> something that is generally allowed for and warn parser implementers that
>> they need to check the value type. To handle the issue with unknown
>> properties, we could assert that if the parser does not know about the
>> property that it should treat it as opaque text.
>>
>>
>>
>> So let me summarize whats left to decide:
>>
>> (1) Grouping:
>>   a) Leave "groupname.email" as the property name, or
>>   b) Add a pseudo-property with the special type "group" and make its
>> value be an array of group members
>>
>> (2) Naming conflicts: We agree here that jCal's mechanism works better
>>
>> (3) Objects for structured property values
>>   a) Use an array, possibly with a null value for any structured property
>>   b) Use an object, avoids null values and makes access easier
>>   c) Do not parse value at all, leave it as an opaque text
>>
>> My personal preferences are 1a and either 3b or 3c.
>>
>> Philipp
>>
>
