Parse the response from the backend 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);
}
List<IODataEntry> Entries = Odatafeed.getEntries();
for(IODataEntry entry:Entries)
{
entry.getValues("content","properties","Name");
}
This section lists unique features of JSON parser.