Skip to content

Include GsonHttpMessageConverter in Spring MVC [SPR-11460] #16086

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

Closed
spring-projects-issues opened this issue Feb 21, 2014 · 1 comment
Closed
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Feb 21, 2014

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:

  1. Single JAR compared to at least 3 Jackson-2 JARs (annotations, core, databind);
  2. Smaller JAR footprint (186K v/s 35K + 194K + 893K);
  3. GSON does not serialize fields with null values, Jackson does (```
    { }
```{ "middleName" : null }
```).

Affects: 4.0 GA, 4.0.1, 4.0.2

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Feb 21, 2014

Rossen Stoyanchev commented

This is already planned, see #14123.

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement status: duplicate A duplicate of another issue in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants