-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Provide Gson/JSON-B MessageConverter for spring-messaging (aligned with spring-web) #21496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Marten Deinum commented Pull request available. Including:
|
pretty nice feature, any plans for merge/integration? |
I would love to see this included! Great contribution @mdeinum 👍 |
In the meantime, we don't just have GSON to deal with but also JSON-B with Apache Johnzon as the common implementation. The number of message converter implementations would rise significantly... and I'm not sure all of them are destined to be first-class citizens in a 2020 scenario. Which variants are you specifically interested in? If it is indeed GSON, would it be the JMS variant or the |
I assume the question is for @gaxpay and not me. But the initial contribution was to align the supported JSON implementation from the web to messaging (and JMS) as well. Isn't it a bit strange to support something for the web but not for messaging in regards to first-class citizens? Wouldn't that also be a source of problems, especially in regards to auto-configuration as which JSON implementation would be used (GSON for the web and Jackson for messaging?). Currently, it might make more sense to place them in |
The inconsistency is definitely worth addressing in some form; I just wonder where to draw the line. The Jackson JMS converter is a bit special in terms of its type id handling, inferring the JSON type from the JMS message itself, whereas the On a related note, we recently added Protobuf and Protobuf-JSON converter to |
My view of it was the same as mentioned above, namely consistency across borders of web vs messaging and the auto-configurations. |
I've repurposed this issue for the Gson / JSON-B (Apache Johnzon) alignment in |
Marten Deinum opened SPR-16958 and commented
When using messaging there are
MessageConverter
implementations using Jackson to marshall message from/to JSON. However there doesn't seem to be one for GSON whereas there is GSON support in the web area.Now when using both messaging and web and when using GSON and want to use JSON for marshaling you need both providers on the class path. It would be nice if we could use GSON in the messaging area as well.
Affects: 5.0.7
Referenced from: pull request #1863
The text was updated successfully, but these errors were encountered: