Parsing the Data

Parse the response from the backend to the device.

Retrieving the Response from Backend

Based on the data request sent to the backend, retrieve the data as a response to the device.
public void onSuccess(IRequest mRequest, IResponse mResponse) {
         /* Parses the service document */
         IODataServiceDocument serviceDocument = parser.parseODataServiceDocument(EntityUtils.toString(mResponse.getEntity()));            
         /*parses response meta data*/
         IODataSchema metaDataDocument = parser.parseODataSchema(EntityUtils.toString(mResponse.getEntity()), serviceDocument);

        /*Parses a feed or an entry and returns List of IOdataEntry.*/
        List<IODataEntry> Entries= parser.parseODataEntries(EntityUtils.toString(mResponse.getEntity()), collectionID, metaDataDocument);
        /*Parses a feed or an entry and returns IOdataFeed.*/
        IODataFeed Odatafeed = parser.parseODataFeed(EntityUtils.toString(mResponse.getEntity()), collectionID, schema);
        }

Accessing Properties of IODataEntry or IODataFeed

This section explains how to access properties of IODataEntry or IODataFeed.
List<IODataEntry> Entries = Odatafeed.getEntries();
         for(IODataEntry entry:Entries)
         {
                entry.getValues("content","properties","Name");
         }

Features of JSON Parser

This section lists unique features of JSON parser.