Gson is an open-source JSON library which aims to be simple and quick to use while providing a bunch of options to accommodate even some complex use cases.
In this tutorial you’re going to learn the basics of Gson and how to generic classes (lists to be exact) to and from JSON. Parsing JSON strings and making generic lists out of them is a bit more challenging than it may seem at first glance. It requires a bit of work with TypeTokens. You will also learn how to create an extension function in Kotlin.
This post contains all the code that’s been written in this YouTube video.


Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?