Support for using Jackson instead of Gson
See original GitHub issueCurrently the ApnsPayloadBuilder
uses Gson to create the content for the payload.
Is it possible to make the creation of payload pluggable via some kind of interface, or extract a base builder that would have common methods for the locations where the conversion to JSON is needed?
The reason why I am asking for this is due to the fact that I would like to try and use one JSON parsing library within our project and currently we use Jackson a lot.
I am also prepared to work on this if you are interested and would accept such a PR.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Jackson vs Gson - Baeldung
Both Gson and Jackson are good options for serializing/deserializing JSON data, simple to use and well documented. Advantages of Gson:.
Read more >Jackson Vs. Gson - java - Stack Overflow
Jackson and Gson are the most complete Java JSON packages regarding actual data binding support; many other packages only provide primitive ...
Read more >Configuring Spring Boot to use Gson instead of Jackson
Spring Boot uses Jackson by default for serializing and deserializing request and response objects in your REST APIs. If you want to use ......
Read more >Jackson Vs Gson - Javatpoint
Jackson and Gson both are the libraries/APIs. Both the libraries work with JSON data. These are also used to serialize and deserialize the...
Read more >Jackson vs Gson: A Deep Dive - Examples Java Code Geeks
The Jackson ObjectMapper by default serializes the Date object as a long epoch value. Contrarily, Gson by default serializes Date as a string....
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 FreeTop 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
Top GitHub Comments
No problem.
Yes the idea was that you can explicitly exclude Gson if you don’t need it. However, it depends on the approach you’ll like to take.
Here are some options that I have in mind:
This is covered by #776.