On 15/04/2008, <b class="gmail_sendername">Brian Suda</b> <<a href="mailto:brian.suda@gmail.com">brian.suda@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> > the discussion about a standardized jCard output format seems to have<br> > slept in a bit - so I am here to revive it.<br> <br> --- my first suggestion is not to call it jCard, but something more<br> like JSON output of vCard or JSON to hCard mapping. As Ben said<br>
earlier, if we start using jCard, then we'll have xCard, aCard,<br> pCard... all meaningless words. The same json mappings we make for<br> hCard will be effective for hCalendar, hReview, etc. so the<br> terminology should reflect this.<br>
<br> > I think it's somewhat premature to suggest that we're 'pretty much done<br> > with' the specs.<br> <br> --- i am not a JSON expert, so i can't weigh in on specifics, but<br> here's what i would suggest to help move things along.<br>
<br> Have a look at the current test suite. It has HTML and .vcf/.ics<br> output for the pages.<br> <a href="http://hg.microformats.org/tests">http://hg.microformats.org/tests</a><br> <br> We should also create a .json output as well. Then we can have a<br>
better point of discussion around real examples. This will help<br> clear-up any outstanding issues and at the same time give various<br> developers something to test their own code against.<br> <br>> Any attempt to standardise the object model of microformats is going to<br>
> need their assistance, and they're also amongst the most experienced working<br> > with parsing. It's important they're give an opportunity to raise their own<br> > issues before this work gets pushed into finalisation.<br>
<br> --- i think the sample .json output from the tests will really help.<br> Without that, it is difficult to discuss exact parsing rules and<br> expected behaviours.<br> </blockquote></div><br>Apologies that I'm late to this conversation ... I've been watching the
idea unfold but haven't had a moment to contribute so far.<br>
<br>
I'd echo Brian's point about the name, but I'm not going to get hung up on that.<br>
<br>
However, the point about the test suites is crucial. If this is viable
and useful then having the hCard tests in JSON format will both help
confirm and encourage that. I'd just a compact format for the output
(no whitespace etc) so that it becomes simple to perform a basic string
comparison to verify results.<br>
<br>
+1 to never reducing single-item arrays. This is something we're changing in hkit already.<br>
<br>
drew.<br>
<br>