I feel that this question is better suited for
Code Review. I somewhat disagree with the reviewer on some points, but he is right about this - why introduce another dependency and do something manually, when spring does it for you by default? Your approach will also generate doubly serialized json, which will be problematic for consumers of the API. You should not totally abandon gson, there are use cases where it is better choice, but jackson beats it in other situations. Depends on the use case really, but mostly you don't really need it with spring. —
Chaosfire 44 secs ago