Skip to content

Parsing JSONArray to ArrayList using Gson()

“JSON stands for JavaScript Object Notation. JSON is a lightweight format for storing and transporting data. JSON is often used when data is sent from a server to a web page. JSON is “self-describing” and easy to understand”, said.


As we know, JSON is one of the important part on development process exactly when we are going to parse data. I usually use Gson to ease the parsing data process. For me, parsing object data is easier than parsing array data. Usually I forget how to parse array data directly into an array list. So I wrote it down here. Check it out one row code in java to parse data array to be an arraylist object data.

although it is very simple, but I often forget, T-T

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.