Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Yasson » Using Yasson within JavaEE (JAX-RS)
Using Yasson within JavaEE (JAX-RS) [message #1749430] Tue, 06 December 2016 16:51 Go to next message
Simon Narkprasert is currently offline Simon NarkprasertFriend
Messages: 1
Registered: December 2016
Junior Member
I wanted to test Yasson within a JavaEE application using Payara as an application server.
As far as I know EclipseLink MOXy is enabled by default to perform some Json serialization.

Is there any way to replace EclipseLink MOXy with Yasson?
I know that I can disable MOXy like this:
properties.put("jersey.config.disableMoxyJson", true);

What I am missing is an option to use Yasson automatically behind the scenes within JAX-RS without having to call the API like this:

Best regards,
Re: Using Yasson within JavaEE (JAX-RS) [message #1750548 is a reply to message #1749430] Thu, 22 December 2016 13:21 Go to previous message
Dmitry Kornilov is currently offline Dmitry KornilovFriend
Messages: 9
Registered: June 2014
Junior Member
You cannot use Yasson with Jersey now. Some adapter/converter has to be added to Jersey to make it work. We haven't started with Jersey integration yet. But you can always contribute. Smile
Next Topic:Pb marshalling Optional<java.util.Date> attribute
Goto Forum:

Current Time: Thu Jul 16 05:13:19 GMT 2020

Powered by FUDForum. Page generated in 0.02265 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top