Closed
Description
Manish opened SPR-11460 and commented
I am working on a number of projects that use GSON for JSON serialization. However, in the web layer we are using Jackson 2 for similar purposes.
It will be good if the class GsonHttpMessageConverter
from the Spring Android REST project were to be made available with Spring MVC core as then we would be able to avoid two different libraries in the same project.
Other desirable features of GSON are:
- Single JAR compared to at least 3 Jackson-2 JARs (annotations, core, databind);
- Smaller JAR footprint (186K v/s 35K + 194K + 893K);
- GSON does not serialize fields with null values, Jackson does (```
{ }
```{ "middleName" : null }
```).
Affects: 4.0 GA, 4.0.1, 4.0.2
Issue Links:
- Add Gson HttpMessageConverter [SPR-9488] #14123 Add Gson HttpMessageConverter