users@jersey.java.net

internal JSON format configuration update

From: Jakub Podlesak <Jakub.Podlesak_at_Sun.COM>
Date: Mon, 22 Sep 2008 14:46:02 +0200

Hi all,

I have just changed how [JSONJAXBContext] gets configured.
The properties bag still exists, only instead of plain Strings,
more appropriate java types are used from now on to pass e.g. arrays.
It should avoid certain types of issues in runtime.

Main changes:

JSON_NOTATION:
    takes directly the enum value from JSONNotation

JSON_NON_STRINGS, JSON_ATTRS_AS_ELEMS, JSON_ARRAYS:
    takes a Collection<String> instead of String representation of JSON array

JSON_XML2JSON_NS:
    takes a Map<String, String> instead of String representation of JSON object


I want to further work on simplification/unification of the JSON configuration
for various layers involved (JSON xml stream reader/writer). When finished,
i plan to write a blog describing all the options and the usage.

~Jakub


-- 
http://blogs.sun.com/japod