users@jersey.java.net

JSON notation in Jersey

From: Seamus Kerrigan (skerriga) <"Seamus>
Date: Fri, 4 Apr 2008 11:14:46 +0200

Hi,

I've been doing some work with Jersey for the past while but yesterday I
got to try out Jersey 0.7 and it looks as though Badgerfish notation is
now the default JSON format again? I found that early Jersey versions
were using Badgerfish by default but 0.6 was using the Mapped notation
as it's default as outlined in Jakub's blog
http://blogs.sun.com/japod/entry/better_json_available_in_jersey.

I just have a couple of questions on this JSON formatting:
 - Is Badgerfish likely to be the preferred JSON notation in future
Jersey releases?
 - Will XmlAttributes be supported in the Mapped/Mapped-Jettison
formats?
 - The blog outlines a method of changing between JSON formats by
defining a ContextResolver. Is still this valid in 0.7? I gave this a
very quick try yesterday but was unsuccessful.

Many thanks,
Seamus