Class JsonNull


public class JsonNull extends JsonValue
Represents a JSON null value.

JsonNull is used to represent the JSON literal null. It is automatically created when a null Java object is added to a JsonObject or JsonArray.

  • Constructor Details

    • JsonNull

      public JsonNull()
  • Method Details

    • toJsonString

      public String toJsonString()
      Description copied from class: JsonValue
      Returns this value serialized as a JSON string.
      Specified by:
      toJsonString in class JsonValue
      Returns:
      the JSON string representation.