Change in Json Serialization in resteasy when upgraded Jackson from 2.8.0/2.10.0 to 2.17.2 #270
Replies: 2 comments 5 replies
-
This problem is your problem. You have upgraded some ancient versions of libraries including many non-Jackson libs like swagger libs and jersey libs. If you can produce a POC that uses Jackson libs and nothing else, then that suggests a Jackson change causes your issue. You should not expect us to guess without a Jackson only reproduction case. |
Beta Was this translation helpful? Give feedback.
-
This is an example of way too broad a question -- how did this library change all around between a very big version jump? A more specific isolated example could be submitted as an issue instead. If so, reproduction should:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I upgraded following libraries after which the JSON output changed. Now I am not getting 0, empty strings.
How to make sure 0 and ""(empty strings) appear in JSON output after serialization of class to make sure my code is backward compatible?
Summary of Upgraded Dependencies
Jackson Core Libraries:
jackson-core upgraded from 2.8.0 to 2.17.2
jackson-databind upgraded from 2.8.0 to 2.17.2
jackson-annotations upgraded from 2.8.0 to 2.17.2
Jackson JAX-RS Provider:
jackson-jaxrs-json-provider upgraded from 2.10.0 to 2.17.2
jackson-jaxrs-base upgraded from 2.10.0 to 2.17.2
jackson-module-jaxb-annotations upgraded from 2.10.0 to 2.17.2
Jackson Module for JSR310 (Java 8 Date and Time API):
jackson-datatype-jsr310 upgraded from 2.8.0 to 2.17.2
Jackson Module for JSON Schema:
jackson-module-jsonSchema upgraded from 2.4.1 to 2.17.2
Swagger JAX-RS:
swagger-jaxrs upgraded from 1.3.12 to 1.6.14
This is my custom
JacksonJsonProvider
class which is registered inweb.xml
underresteasy.providers
.Beta Was this translation helpful? Give feedback.
All reactions