Transit versus Gson

89 views
Skip to first unread message

v kohli

unread,
Apr 23, 2018, 4:07:10 PM4/23/18
to transit-format
Hello all,

I am considering use of transit (transit-java in particular) for RESTful development of microservices (with JSON request and response) and someone in my team offered Google Gson (https://github.com/google/gson) as an alternative.

Gson seems to have similar feature-set as transit as far as I can tell, including custom handlers for read and write (Gson calls it custom serialization and deserialization), and plays nice with Spring boot (has a GsonHttpMessageConverter, though I can string together one for transit).
One obvious difference I can see with transit is optional compression of the JSON.  But other than that I can't seem to make a compelling case for transit compared to Gson, perhaps due to my limited knowledge.

Would appreciate if people from this group could point to any significant advantages transit offers compared to Gson when used from Java.

Thanks
Vish

Reply all
Reply to author
Forward
0 new messages