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 Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Abstract interface implemented by all builders that build JSONNode instances
    static enum 
    The type of node in the object hierarchy
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates if this node has any child elements
    int
    The number of child elements in this node
    The type of JSONNode
  • 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

      The type of JSONNode
      Returns:
      JSONNode.Type of JSONNode