com.sdicons.json.model
Class JSONNull
java.lang.Object
com.sdicons.json.model.JSONValue
com.sdicons.json.model.JSONSimple
com.sdicons.json.model.JSONNull
public class JSONNull
- extends JSONSimple
Represents a JSON null value.
The only valid example is: null.
Methods inherited from class com.sdicons.json.model.JSONValue |
decorate, getCol, getData, getLine, getStreamName, isArray, isBoolean, isComplex, isDecimal, isInteger, isNull, isNumber, isObject, isSimple, isString, render, setData, setLineCol, setStreamName |
NULL
public static final JSONNull NULL
JSONNull
public JSONNull()
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.
Copyright © 2011. All Rights Reserved.