JSONObject rootResults = new JSONObject(builder.toString());
// Check for invalid result or returned an error
if (! rootResults.has(DIGG_STORIES_ELEMENT) ) {
throw new InvalidResultException(
"Error in Results: The stories root element is not available ");
}
JSONArray storiesElement = rootResults.getJSONArray(DIGG_STORIES_ELEMENT);
/* Parse the Results as long there is no returned Error code */