Class JSONResult

    • Constructor Detail

      • JSONResult

        public JSONResult​(HttpConnection c)
        Constructor
        Parameters:
        c - source of data
      • JSONResult

        public JSONResult​(java.lang.String s)
        Constructor with a string
        Parameters:
        s - The source of the content.
    • Method Detail

      • getObjects

        public java.util.List<org.json.JSONObject> getObjects()
                                                       throws org.json.JSONException
        Returns:
        The results as a list of JSON-Objects.
        Throws:
        org.json.JSONException - If there is an error parsing the content.
      • getResults

        public org.json.JSONArray getResults()
        Returns:
        The results as a JSONArray.
      • getIterator

        public java.util.Iterator<org.json.JSONObject> getIterator()
                                                            throws org.json.JSONException
        Returns:
        An iterator over each object in the result set.
        Throws:
        org.json.JSONException - if there is an error parsing the data in the JSON.