Parsing JSON Data In Android

API development is the primary area where JSON is most widely used. Irrespective of which language (ie, JAVA, PHP, C etc) you use to develop or which platform are you in (i.e, Computer, Mobile etc) JSON data format is considered as the best method to use in data interchange. In this article i will explain about parsing JSON data in Android from the angle of an API development.

Basic Philosophy

In the stages of data transfer the parsing comes at the receiver end. Receiver should be able to receive and process the data. This processing means extracting the values from JSON data. This functionality is known as JSON parsing. JSON parser is the one which is performing parsing functionality.

Parsing normally done by traversing through the JSON string from top to down. The parser will go through entire node. Each node is converted either to an object or an array. And converting entire JSON string to program variables is the key functionality of a JSON parser. Only after this conversion we can use JSON values in our program. In this way communication between two entirely different platforms can comes into reality. In this way JSON parsing is the back pillar of data communication.

Being JSON data format is an universal hence it is language independent and generic. Converting it into program is the duty of JSON parser.

Criterias For Parsing

There are some criterias to in order to perform JSON parsing which are,