Recent Posts

Site Creator




JSON Parsing in Android

Posted on



Today we are going to retrieve a JSON from a web url parse it and use it in our application.  The very first question is why JSON is used so heavily.

Short answer : Almost every computer language has built in functions to manipulate JSON. So it is easier for developers to parse JSON and utilise in program.


Long answer : JSON is very lightweight so it takes very less bandwidth to travel across the network. So it is faster than xml.

We will be coding in Android Studio with Java Language. To know about JSON syntax you can study Link


see below JSON



So in android we create POJO ( plain Old Java Objects) after visualising the JSON structure. In JSON structure above there is JSON Object at the root.

after that there is a JSON Object called list which has another JSON Array called data. This JSON Array will be having other JSON Objects.

Let create pojo’s


see below android java file



Source code of the application is available at : JSONParsingDemo


Thanks for reading.




Disclaimer: The aforesaid writeup by Relsell Global writer is for the general understanding of the readers. It does not render any professional advice or opinion.