users@jersey.java.net

[Jersey] Re: JsonJaxbModule for JAX-RS 2.0

From: Nick Khamis <symack_at_gmail.com>
Date: Mon, 29 Jul 2013 13:50:26 -0400

On 7/29/13, Jakub Podlesak <jakub.podlesak_at_oracle.com> wrote:
> Hi Nick,
>
> Please see the list of required dependencies at [1].
>
> MOXy JSON feature configuration should be described at [2],
> i.e. when you add jersey-media-moxy and it's dependencies to your
> class-path, the MOXy JSON support should be turned on automatically.
>
> HTH,
>
> ~Jakub
>
> [1]https://jersey.java.net/project-info/2.1/jersey/project/jersey-media-moxy/dependencies.html
> [2]https://jersey.java.net/documentation/latest/media.html#json.moxy
>
> On Jul 26, 2013, at 6:47 PM, Nick Khamis <symack_at_gmail.com> wrote:


Hello Jakub,

I would really like to stay updated and use the new JSON-P
functionality for automatic JSON de/serialization. I did see [1]
however, I was not able to understand how it would add the JSON
functionality?

Could someone please help? Our client side will be pure html, the
server side is using
`javax.ws.rs.core.Application`. What is all this stuff for JSON (i.e.,
jettison, jackson, jsonp, moxy..... )

Is it possible to get rid of this error: "MessageBodyWriter not found
for media type=application/json", using the JSON-P implementation
found in [2]?

[1] http://www.adam-bien.com/roller/abien/entry/configuring_jax_rs_2_01
[2] https://jersey.java.net/project-info/2.1/jersey/project/jersey-media-json-processing/dependencies.html