Resteasy Reactive serializes objects differently than Resteasy
See original GitHub issueDescribe the bug
I have the following object which I return via a resource and serialize with Jackson.
With Resteasy the following JSON is generated:
{
"name":"Quarkus T-Shirt",
"price":{
"amount":12,
"currency":"EUR"
}
}
But when I use Resteasy Reactive, the object is generated as follows:
{
"name":"Quarkus T-Shirt",
"price":{
"amount":12,
"currency":{
"context":{
"empty":false,
"providerName":"java.util.Currency"
},
"defaultFractionDigits":2,
"currencyCode":"EUR",
"numericCode":978
}
}
}
Expected behavior
The JSON generated by Resteasy Reactive should look exactly like the one generated by Resteasy
Actual behavior
No response
How to Reproduce?
https://github.com/andlinger/quarkus-reproducer/tree/quarkus-23418-2
Output of uname -a
or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
Tested with 2.7.0.Final and 2.6.3.Final
Build tool (ie. output of mvnw --version
or gradlew --version
)
No response
Additional information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Writing REST Services with RESTEasy Reactive - Quarkus
The JAXB resteasy reactive extension will serialize and unserialize requests and responses transparently for users. However, if you need finer ...
Read more >RESTEasy JAX-RS - JBoss.org
RESTEasy is installed and configured in different ways depending on which environment you are running in. If you are running in WildFly, RESTEasy...
Read more >Quarkus Mutiny + RESTEasy Reactive: What is actually ...
The problem is that quarkus-resteasy-reactive-jackson is not being used, therefore proper JSON integration is not present in the REST ...
Read more >Chapter 2. Developing JAX-RS Web Services
These annotations simplify the process of mapping Java objects to web ... RESTEasy can automatically marshal and unmarshal a few different message bodies....
Read more >Quarkus Insights #82: What's new in RESTEasy Reactive
Clement Escoffier @clementplop & Georgios Andrianakis @geoand stop by to discuss the latest changes to RESTEasy Reactive and Quarkus.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll take a closer look tomorrow
NP