Class JSONNull


  • public class JSONNull
    extends JSONSimple
    Represents a JSON null value. The only valid example is: null.
    • Field Detail

      • NULL

        public static final JSONNull NULL
    • Constructor Detail

      • JSONNull

        public JSONNull()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • render

        protected java.lang.String render​(boolean pretty,
                                          java.lang.String indent)
        Description copied from class: JSONValue
        Convert the JSON value into a string representation (JSON representation).
        Specified by:
        render in class JSONValue
        Parameters:
        pretty - Indicating if the print should be made pretty (human readers) or compact (transmission or storage).
        indent - Starting indent.
        Returns:
        A JSON representation.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • strip

        public java.lang.Object strip()
        Strip all JSON information. In the case of a JSONNull object, only null remains...
        Specified by:
        strip in class JSONValue
        Returns:
        null.