Parsing JSONArray to ArrayList using Gson()

Didi Yulianto/ October 19, 2019/ Android Development/ 0 comments

“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

Share this Post

Leave a Comment

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

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