Setting up Gson to parse JSON for a RecyclerView (Ecommerce #10)

Published: 20 October 2018
on channel: DJ Malone
5,539
60

Android Developers are often tasked with displaying a list of data from a URL endpoint. In this tutorial, let's see how to make a REST API call on a background thread using Anko, a background thread utility by the creators of Kotlin. Let's also use Gson (by Google) to parse the JSON data into a model, and display the data as a grid with a RecyclerView. Ready? Let's get started!

Sample API for testing: https://finepointmobile.com/data/prod...

Anko: https://github.com/Kotlin/anko

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

Connect with me on LinkedIn!   / danielmalone  

Follow me on Twitter:   / danielmalone  

Have a good day!


Watch video Setting up Gson to parse JSON for a RecyclerView (Ecommerce #10) online without registration, duration hours minute second in high quality. This video was added by user DJ Malone 20 October 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,539 once and liked it 60 people.