Class JSONObject.Array

  • All Implemented Interfaces:
    JSON
    Enclosing class:
    JSONObject

    public static class JSONObject.Array
    extends java.lang.Object
    implements JSON
    An array of objects. Members can be JSON too.
    Author:
    Pinaki Poddar
    • Constructor Detail

      • Array

        public Array()
    • Method Detail

      • add

        public void add​(java.lang.Object o)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • asString

        public java.lang.StringBuilder asString​(int indent)
        Description copied from interface: JSON
        Render into a string buffer.
        Specified by:
        asString in interface JSON
        Parameters:
        indent - level at which this instance is being rendered
        Returns:
        a mutable buffer