Interface JSONNode
-
- All Known Subinterfaces:
JSONArray
,JSONObject
public interface JSONNode
Represents aJSONObject
orJSONArray
in a JSON document.- Author:
- cdivilly
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
JSONNode.Builder
Abstract interface implemented by all builders that buildJSONNode
instancesstatic class
JSONNode.Type
The type of node in the object hierarchy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEmpty()
Indicates if this node has any child elementsint
size()
The number of child elements in this nodeJSONNode.Type
type()
The type ofJSONNode
-
-
-
Method Detail
-
size
int size()
The number of child elements in this node- Returns:
- The number of child elements of this node
-
isEmpty
boolean isEmpty()
Indicates if this node has any child elements- Returns:
- true if the node has 1 or more child elements, false otherwise
-
type
JSONNode.Type type()
The type ofJSONNode
- Returns:
JSONNode.Type
ofJSONNode
-
-