Interface JSONNode
- All Known Subinterfaces:
JSONArray,JSONObject
public interface JSONNode
Represents a
JSONObject or JSONArray in a JSON document.- Author:
- cdivilly
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAbstract interface implemented by all builders that buildJSONNodeinstancesstatic enumThe type of node in the object hierarchy -
Method Summary
-
Method Details
-
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.TypeofJSONNode
-