Class JSONPointer.QueryResult

  • Enclosing class:
    JSONPointer

    public static class JSONPointer.QueryResult
    extends Object
    Data-transfer object for holding the result of a JSON pointer query.
    • Constructor Detail

      • QueryResult

        public QueryResult​(org.json.JSONObject containingDocument,
                           org.json.JSONObject queryResult)
        Constructor.
        Parameters:
        containingDocument - the JSON document which contains the query result.
        queryResult - the JSON object being the result of the query execution.
    • Method Detail

      • getContainingDocument

        public org.json.JSONObject getContainingDocument()
        Getter for containingDocument.
        Returns:
        the JSON document which contains the query result.
      • getQueryResult

        public org.json.JSONObject getQueryResult()
        Getter for queryResult.
        Returns:
        the JSON object being the result of the query execution.