Gson Android Kotlin Tutorial - Parse Generic Lists from JSON & Introduction

Reso Coder
Reso Coder
14 هزار بار بازدید - 6 سال پیش - Gson is an open-source JSON
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.

Gson library: https://github.com/google/gson

Get the code written in this tutorial: https://wp.me/p8jOJP-8t

Go to my website for more information, code examples and articles:
http://resocoder.com

Follow me on social media:
Facebook: resocoder
Twitter: resocoder
6 سال پیش در تاریخ 1397/01/17 منتشر شده است.
14,073 بـار بازدید شده
... بیشتر