JsonNull Class
- java.
lang. Object - com.
azure. json. models. JsonElement - com.
azure. json. models. JsonNull
- com.
- com.
public final class JsonNull
extends JsonElement
Model representing a JSON null value.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Json |
fromJson(JsonReader jsonReader)
Deserializes a JSON null from a Json |
|
static
Json |
getInstance()
Gets the instance of the Json |
| boolean |
isNull()
Identifies if a Json |
|
Json |
toJson(JsonWriter jsonWriter) |
| String | toJsonString() |
Methods inherited from JsonElement
Methods inherited from java.lang.Object
Method Details
fromJson
public static JsonNull fromJson(JsonReader jsonReader)
Deserializes a JSON null from a JsonReader.
If the JsonReader's current token is null, it is assumed the JsonReader hasn't begun reading and nextToken() will be called to begin reading.
After ensuring the JsonReader has begun reading, if the current token is not NULL, an IllegalStateException will be thrown. Otherwise, getInstance() will be called to return the deserialized JSON null.
Parameters:
Returns:
Throws:
getInstance
public static JsonNull getInstance()
Gets the instance of the JsonNull class.
Returns:
isNull
public boolean isNull()
Identifies if a JsonElement is of type JsonNull.
Overrides:
JsonNull.isNull()Returns: