title: Is there any way to convert Spring data interface projections with google Gson?
body: <p>Im developing a system that relies heavily on data projections as the entities are quite big but rarely do I need the whole entity, hence Im using projections (interface projections).
  Now my project uses gson and its HttpConverter but it throws me an exception:</p>
  <pre><code>org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Attempted to serialize java.lang.Class: com.manager.projections.StaffProjection. Forgot to register a type adapter?; nested exception is java.lang.UnsupportedOperationException: Attempted to serialize java.lang.Class: com.manager.projections.StaffProjection. Forgot to register a type adapter?
  </code></pre>
  <p>Is there any way to tackle this issue without needing to define JsonSerializers for all my projections? I have quite a few...</p>