Serialization is the process of converting data used by an application to a format that can be transferred over a network or stored in a database or a file
deserialization is the opposite process of reading data from an external source and converting it into a runtime object.
Moshi is a modern JSON library for Android, Java and Kotlin.
Gson is a Java library that can be used to convert Java Objects into their JSON representation.
gson과 moshi 모두 java 기반이다. 하지만 moshi는 kotlin을 포함한 json parsing library이다. 코틀린의 null safety와 같은 장점을 사용하기 위해서는 moshi가 더 유용하다.
gson은 최근 bug fix를 진행하고 있지만 새로운 기능은 추가하지 않을 것이라고 공식적으로 언급되었다. 따라서 죽어가는 라이브러리! moshi를 지향하자!