Skip to content

Instantly share code, notes, and snippets.

@ryosms
Created August 13, 2013 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryosms/6219103 to your computer and use it in GitHub Desktop.
Save ryosms/6219103 to your computer and use it in GitHub Desktop.
楽天の凶悪なJsonをAndroidAnnotationのRest APIで無理やりなんとかするアレ
package jp.sumasu.rakutenapi;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.GsonHttpMessageConverter;
/**
* @author ryosms - ryo.sms at gmail.com
*/
public class RakutenGsonConverter extends GsonHttpMessageConverter {
@Override
public boolean canRead(Class<?> clazz, MediaType mediaType) {
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment