Skip to content
Ligboy edited this page Apr 25, 2016 · 20 revisions

Retrofit is pluggable allowing different serialization formats and their libraries to be used for converting Java types to their HTTP representation and parsing HTTP entities back into Java types.

These are called converters, and Retrofit includes a few first-party modules for popular frameworks:

  • Gson - com.squareup.retrofit2:converter-gson
  • Jackson - com.squareup.retrofit2:converter-jackson
  • Moshi - com.squareup.retrofit2:converter-moshi
  • Protobuf - com.squareup.retrofit2:converter-protobuf
  • Wire - com.squareup.retrofit2:converter-wire
  • Simple Framework - com.squareup.retrofit2:converter-simpleframework
  • Scalars - com.squareup.retrofit2:converter-scalars

Various third-party converters have been created by the community for other libraries and serialization formats:

  • LoganSquare - com.github.aurae.retrofit2:converter-logansquare
  • FastJson - compile 'org.ligboy.retrofit2:converter-fastjson' or compile 'org.ligboy.retrofit2:converter-fastjson-android
Clone this wiki locally