Class JSONNull


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

    • NULL

      public static final JSONNull NULL
  • Constructor Details

    • JSONNull

      public JSONNull()
  • Method Details

    • toString

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

      protected String render(boolean pretty, 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(Object obj)
      Overrides:
      equals in class Object
    • strip

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