Class JSONValue

    • Constructor Summary

      Constructors 
      Constructor Description
      JSONValue()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isArray()
      Get a boolean indicating whether this instance represents an JSON array value or not.
      boolean isBoolean()
      Get a boolean indicating whether this instance represents a JSON boolean value or not.
      boolean isNull()
      Get a boolean indicating whether this instance represents a JSON null value or not.
      boolean isNumber()
      Get a boolean indicating whether this instance represents a JSON numeric value or not.
      boolean isObject()
      Get a boolean indicating whether this instance represents an JSON object value or not.
      boolean isString()
      Get a boolean indicating whether this instance represents a JSON string value or not.
      java.lang.String toString()
      Returns a string representation of the JSON value
      java.lang.String toString​(JSONOutputConfig config)
      Returns a string representation of the JSON value but allows the option to pass a configuration which changes the string output
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JSONValue

        public JSONValue()
    • Method Detail

      • isNull

        public boolean isNull()
        Get a boolean indicating whether this instance represents a JSON null value or not.
        Returns:
        true for objects representing a null value, false otherwise.
      • isBoolean

        public boolean isBoolean()
        Get a boolean indicating whether this instance represents a JSON boolean value or not.
        Returns:
        true for objects representing a boolean value, false otherwise.
      • isNumber

        public boolean isNumber()
        Get a boolean indicating whether this instance represents a JSON numeric value or not.
        Returns:
        true for objects representing a numeric value, false otherwise.
      • isString

        public boolean isString()
        Get a boolean indicating whether this instance represents a JSON string value or not.
        Returns:
        true for objects representing a string value, false otherwise.
      • isArray

        public boolean isArray()
        Get a boolean indicating whether this instance represents an JSON array value or not.
        Returns:
        true for objects representing an array value, false otherwise.
      • isObject

        public boolean isObject()
        Get a boolean indicating whether this instance represents an JSON object value or not.
        Returns:
        true for objects representing an object value, false otherwise.
      • toString

        public java.lang.String toString()
        Returns a string representation of the JSON value
        Overrides:
        toString in class java.lang.Object
        Returns:
        json string
      • toString

        public java.lang.String toString​(JSONOutputConfig config)
        Returns a string representation of the JSON value but allows the option to pass a configuration which changes the string output
        Parameters:
        config - Configuration which changes the output
        Returns:
        json string