users@jersey.java.net

Re: strange JSON serialization

From: Ákos Maróy <maroy_at_euedge.com>
Date: Mon, 07 Jan 2008 16:30:54 +0100

Jakub,

> For jaxb beans, badgerfish notation [1] is used, which is what you see.
> If you want something simpler you need to use JSONObject/JSONArray
> instead of jaxb bean.
>
> I am working on improving json generated from jaxb, but it is not likely
> the whole thing will be ready for 0.5 release.
>
> Jersey currently uses jettison project for json support.
> Given that jettison provides two options for produced json notation,
> i can imagine we can quickly provide a switch to get the other (Mapped Convention)
> notation (see [3]). Will it work for you?

Yes, I guess this is what I was looking for..

Would be fabulous to have such a switch in 0.5..


Akos