On Thu, Aug 5, 2010 at 8:42 AM, Mike Baranczak <mbaranczak_at_gmail.com> wrote:
>
> Configuring JSON in Jersey is slightly convoluted, but it can be done -
> here's how:
>
> http://blogs.sun.com/japod/entry/configuring_json_for_restful_web
>
> I can't remember where the option for pretty-printing is, probably in
> JSONConfiguration.
FWIW, if using Jackson based JAX-RS provider, all you have to do is to
configure ObjectMapper like so:
objectMapper.configure(SerializationConfig.Feature.INDENT_OUTPUT, true);
-+ Tatu +-