JsonNode Interface

public interface JsonNode

Interfaces that represents a JSON node.

Method Summary

Modifier and Type Method and Description
default boolean isArray()

Indicates whether this JsonNode is an instance of JsonArray ([]).

default boolean isNull()

Indicates whether this JsonNode is an instance of JsonNull (null).

default boolean isObject()

Indicates whether this JsonNode is an instance of JsonObject ({}).

default boolean isValue()

Indicates whether this JsonNode is an instance of JsonPrimitive ("string", 0, false, true).

Method Details

isArray

public default boolean isArray()

Indicates whether this JsonNode is an instance of JsonArray ([]).

Returns:

Whether this JsonNode is an instance of JsonArray.

isNull

public default boolean isNull()

Indicates whether this JsonNode is an instance of JsonNull (null).

Returns:

Whether this JsonNode is an instance of JsonNull.

isObject

public default boolean isObject()

Indicates whether this JsonNode is an instance of JsonObject ({}).

Returns:

Whether this JsonNode is an instance of JsonObject.

isValue

public default boolean isValue()

Indicates whether this JsonNode is an instance of JsonPrimitive ("string", 0, false, true).

Returns:

Whether this JsonNode is an instance of JsonPrimitive.

Applies to