Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 55918 invoked from network); 5 Dec 2006 06:13:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2006 06:13:13 -0000 Received: (qmail 56632 invoked by uid 500); 5 Dec 2006 06:13:21 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 56614 invoked by uid 500); 5 Dec 2006 06:13:21 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 56592 invoked by uid 99); 5 Dec 2006 06:13:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 22:13:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of eliast@gmail.com designates 66.249.82.228 as permitted sender) Received: from [66.249.82.228] (HELO wx-out-0506.google.com) (66.249.82.228) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 22:13:08 -0800 Received: by wx-out-0506.google.com with SMTP id i26so3813388wxd for ; Mon, 04 Dec 2006 22:12:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding:sender; b=S6sl+D0R5NCx9dIGX1KKXH4NDEZhPJJBUJMi3myqYnf4A5rxPOB/37kLf5CYzkx4QqjV08/0lG/QoAip9cpMBnhcq27/0P7ftmQtU+YTijBZa8MiOelDeVyiwqvI8Xl4Zf8RxPkizclo+nVq8JweNb+Tm4jcZMjGCa2WvmdhGI0= Received: by 10.70.33.10 with SMTP id g10mr16751073wxg.1165299167813; Mon, 04 Dec 2006 22:12:47 -0800 (PST) Received: from ?192.168.1.111? ( [71.232.132.142]) by mx.google.com with ESMTP id h7sm11354947wxd.2006.12.04.22.12.46; Mon, 04 Dec 2006 22:12:47 -0800 (PST) Message-ID: <45750DDA.7050705@torrez.us> Date: Tue, 05 Dec 2006 01:12:42 -0500 From: Elias Torres User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: abdera-dev@incubator.apache.org Subject: Re: Jettison for JSON support? References: <7b774c950612042102r1108b0c3x20096bae26e167fa@mail.gmail.com> <45750062.3010401@torrez.us> <7b774c950612042131h6e57075ao75f75761654ade9c@mail.gmail.com> <4575081B.3080409@torrez.us> <7b774c950612042159q75446c7ct5273cebc36bc97d4@mail.gmail.com> In-Reply-To: <7b774c950612042159q75446c7ct5273cebc36bc97d4@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: Elias Torres X-Virus-Checked: Checked by ClamAV on apache.org Dan Diephouse wrote: > On 12/5/06, Elias Torres wrote: >> >> >> >> Dan Diephouse wrote: >> > Hi Elias, >> > >> > Please, I think I am the naive one around here as I'm just getting my >> feet >> > wet with Atom and Abdera. :-) >> > >> > Agreed that JSON and XML are not so easily mapped to each other. The >> > xml:base/id/lang stuff slipped my mind as a potential issue. It seems >> that >> > all the xml:base handling is in the FOM* classes right? So the JSON >> support >> > always outputs the full IRIs? >> >> That's my intent at least although the code hasn't been thoroughly >> tested. I think we are calling getHref() instead of getResolvedHref(). >> But anyways, that's the kinds of things we can do in a custom writer as >> opposed to one that reads it from XML. However, it's still unresolved >> how to map 80% of the most commonly used Atom elements into JSON without >> making it too complicated (e.g. doing string checks for '@' or >> maintaining $-namespaces) for the end-user. > > > Personally I hate the $ namespaces. Jettison does require an @ for > attributes, so that is another limitation of it. (I could allow users to > override this, which might be a nice feature, but I don't know that it > makes > any difference for this case) Right. > >> >> > And yes, it would not be that hard for a user to use Jettison with the >> > current APIs. I was just wondering if it made sense to use it >> instead of >> a >> > custom mapping. If no, thats OK, thats just one of the things I'm >> trying >> to >> > figure out. >> >> I guess we could have "multiple" JSONWriters, but I'm not sure we are >> needing that just yet. I think that as we get more users, we'll be able >> to work out a good representation and stick with it. Maybe it's one of >> the automagic ones, maybe it's a custom one. > > > I wonder if there will ever be a standard Atom-JSON mapping... I'm starting > to see how a custom one makes sense in this case, so I'd probably say stick > with custom and people can use Jettison if they need it. Putting > Jettison in > by default sounds like a square peg for a round hole. I think there will be an Atom-JSON mapping, but it's not until APP really starts getting some use out there. Hopefully, we'll be ready to help with that. Thanks for you interest in Abdera and we are pleased to have you using it and finding ways to make it better. -Elias > > - Dan >