public List<JSONObject> getDocuments()
    {
        List<JSONObject> documents = new ArrayList<JSONObject>();
        
        try
        {
            if (data != null && data.has(documentsParam))
            {
                JSONArray jsonDocuments = data.getJSONArray(documentsParam);
                
                for(int i = 0; i < jsonDocuments.length(); i++)
                {
                    JSONObject document = jsonDocuments.getJSONObject(i);
                    documents.add(document);
                }
            }
        }
        catch (JSONException e)
        {
            //This is already handled by the enclosing "has" checks
        }
        
        return documents;
    }
public List < JSONObject > getDocuments ( ) { List < JSONObject > documents = new ArrayList < JSONObject > ( ) ; try { if ( data != null && data . has ( documentsParam ) ) { JSONArray jsonDocuments = data . getJSONArray ( documentsParam ) ; for ( int i = 0 ; i < jsonDocuments . length ( ) ; i ++ ) { JSONObject document = jsonDocuments . getJSONObject ( i ) ; documents . add ( document ) ; } } } catch ( JSONException e ) { } return documents ; }
Returns documents from obtain request

@return documents from obtain request